From: Arne Fitzenreiter Date: Wed, 31 Oct 2012 19:58:51 +0000 (+0100) Subject: installer: skip empty blockdevices. X-Git-Tag: v2.13-beta1~116 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=bbfb087e7d9537a0332b2cccc8678581043e277a installer: skip empty blockdevices. --- diff --git a/src/install+setup/install/mountdest.sh b/src/install+setup/install/mountdest.sh index 776962a289..ccee6913c8 100644 --- a/src/install+setup/install/mountdest.sh +++ b/src/install+setup/install/mountdest.sh @@ -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