summaryrefslogtreecommitdiff
path: root/scripts/live-helpers
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-helpers')
-rw-r--r--scripts/live-helpers5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 02c3e55..20952f3 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -181,7 +181,10 @@ setup_loop ()
if [ -n ${readonly} ]
then
- options="${options} -r"
+ if /sbin/losetup --help 2>&1 | grep -q -- "-r\b"
+ then
+ options="${options} -r"
+ fi
fi
if [ 0 -lt "${offset}" ]