From eabd839b32b303c4176a891d2d42a1aeef8fc2da Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 31 Jul 2008 22:34:55 +0100 Subject: [PATCH] Don't use /sbin/losetup to test for '-r' option when the scripts just use "lostup" --- scripts/live | 2 +- scripts/live-helpers | 2 +- 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 -- 2.1.4