Fix a minor losetup usage bug

This commit is contained in:
M. Vefa Bicakci 2016-04-10 00:00:00 -04:00
parent a5f018da1a
commit f51e3a09fe
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF

View File

@ -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?"