summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-07-31 22:34:55 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:00 +0100
commiteabd839b32b303c4176a891d2d42a1aeef8fc2da (patch)
tree201dbaed08e98c8cdc60795a4da3c823290c4705 /scripts
parent1b69d89f210c87efb582f51a4eec391515734e45 (diff)
downloadlive-boot-eabd839b32b303c4176a891d2d42a1aeef8fc2da.tar.gz
live-boot-eabd839b32b303c4176a891d2d42a1aeef8fc2da.zip
Don't use /sbin/losetup to test for '-r' option when the scripts just use "lostup"
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live2
-rw-r--r--scripts/live-helpers2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/live b/scripts/live
index 22d2210..2cfa5e1 100755
--- a/scripts/live
+++ b/scripts/live
@@ -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
diff --git a/scripts/live-helpers b/scripts/live-helpers
index b8b9cf1..f99fa56 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -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