Fixing fromiso= on Squeeze.
authorT(A)ILS developers <amnesia@boum.org>
Mon, 1 Nov 2010 19:38:26 +0000 (20:38 +0100)
committerDaniel Baumann <daniel@debian.org>
Tue, 2 Nov 2010 10:34:15 +0000 (11:34 +0100)
When running "mount DEV MOUNTPOINT" for the device provided by the fromiso= boot
option, Squeeze's busybox errors out with:

    Mounting $DEV on /isofrom failed: No such file on directory.

Using mount -t auto fixes the bug.

scripts/live

index 4b1b92d..d79beed 100755 (executable)
@@ -1485,7 +1485,7 @@ check_dev ()
                        echo "Warning: device for bootoption isofrom= ($FROMISO) not found.">>/live.log
                else
                        mkdir /isofrom
-                       mount "$ISO_DEVICE" /isofrom
+                       mount -t auto "$ISO_DEVICE" /isofrom
                        ISO_NAME="$(echo $FROMISO | sed "s|$ISO_DEVICE||")"
                        loopdevname=$(setup_loop "/isofrom/${ISO_NAME}" "loop" "/sys/block/loop*" "" '')
                        devname="${loopdevname}"