mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
installer: skip empty blockdevices.
This commit is contained in:
@@ -95,6 +95,11 @@ for path in /sys/block/*; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $(cat /sys/block/${device}/size) == 0 ]; then
|
||||||
|
echo " is empty - skipping"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
# Found it.
|
# Found it.
|
||||||
echo " OK, this is it..."
|
echo " OK, this is it..."
|
||||||
echo -n "${device}" > /tmp/dest_device
|
echo -n "${device}" > /tmp/dest_device
|
||||||
|
|||||||
Reference in New Issue
Block a user