Fix a minor losetup usage bug
This commit is contained in:
parent
a5f018da1a
commit
f51e3a09fe
@ -18,7 +18,7 @@ mkdir -p mnt
|
|||||||
|
|
||||||
MNTDIR=$(pwd)/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
|
if [ x$LOOP = x ] ; then
|
||||||
echo "Cannot setup loopback device for the $ROOTIMG file -- perhaps a permissions problem?"
|
echo "Cannot setup loopback device for the $ROOTIMG file -- perhaps a permissions problem?"
|
||||||
|
Loading…
Reference in New Issue
Block a user