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