From bbfb087e7d9537a0332b2cccc8678581043e277a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 31 Oct 2012 20:58:51 +0100 Subject: [PATCH] installer: skip empty blockdevices. --- src/install+setup/install/mountdest.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2