projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check losetup capabilities before specifying to mount as read-only.
[live-boot-grml.git]
/
scripts
/
live-helpers
diff --git
a/scripts/live-helpers
b/scripts/live-helpers
index
02c3e55
..
20952f3
100644
(file)
--- 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}" ]