Don't use /sbin/losetup to test for '-r' option when the scripts just use "lostup"
[live-boot-grml.git] / scripts / live
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