Don't use /sbin/losetup to test for '-r' option when the scripts just use "lostup"
authorChris Lamb <chris@chris-lamb.co.uk>
Thu, 31 Jul 2008 21:34:55 +0000 (22:34 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:00 +0000 (17:48 +0100)
scripts/live
scripts/live-helpers

index 22d2210..2cfa5e1 100755 (executable)
@@ -1016,7 +1016,7 @@ setup_unionfs ()
                        rofslist="${image} ${rofslist}"
                elif [ -f "${image}" ]
                then
-                       if /sbin/losetup --help 2>&1 | grep -q -- "-r\b"
+                       if losetup --help 2>&1 | grep -q -- "-r\b"
                        then
                                backdev=$(get_backing_device "${image}" "-r")
                        else
index b8b9cf1..f99fa56 100644 (file)
@@ -178,7 +178,7 @@ setup_loop ()
 
                        if [ -n ${readonly} ]
                        then
-                               if /sbin/losetup --help 2>&1 | grep -q -- "-r\b"
+                               if losetup --help 2>&1 | grep -q -- "-r\b"
                                then
                                        options="${options} -r"
                                fi