installer: skip empty blockdevices.

This commit is contained in:
Arne Fitzenreiter
2012-10-31 20:58:51 +01:00
parent e62efbb73d
commit bbfb087e7d

View File

@@ -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