diff --git a/mount_root.sh b/mount_root.sh index e9ffe17..28ec7d3 100755 --- a/mount_root.sh +++ b/mount_root.sh @@ -18,7 +18,7 @@ mkdir -p mnt MNTDIR=$(pwd)/mnt -LOOP=$(/sbin/losetup -f -s -o $OFFSET $ROOTIMG) +LOOP=$(/sbin/losetup -f --show -o $OFFSET $ROOTIMG) if [ x$LOOP = x ] ; then echo "Cannot setup loopback device for the $ROOTIMG file -- perhaps a permissions problem?"