From f51e3a09fe732b1214387d99823a50bf81bbef55 Mon Sep 17 00:00:00 2001 From: "M. Vefa Bicakci" Date: Sun, 10 Apr 2016 00:00:00 -0400 Subject: [PATCH] Fix a minor losetup usage bug --- mount_root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?"