projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
live-snapshot: honour "-o|--output FILE".
[live-boot-grml.git]
/
scripts
/
live-helpers
diff --git
a/scripts/live-helpers
b/scripts/live-helpers
index
cc73aa3
..
02c3e55
100644
(file)
--- a/
scripts/live-helpers
+++ b/
scripts/live-helpers
@@
-167,6
+167,7
@@
setup_loop ()
local pattern=${3}
local offset=${4}
local encryption=${5}
local pattern=${3}
local offset=${4}
local encryption=${5}
+ local readonly=${6}
modprobe -q -b "${module}"
udevsettle
modprobe -q -b "${module}"
udevsettle
@@
-178,6
+179,11
@@
setup_loop ()
dev=$(sys2dev "${loopdev}")
options=''
dev=$(sys2dev "${loopdev}")
options=''
+ if [ -n ${readonly} ]
+ then
+ options="${options} -r"
+ fi
+
if [ 0 -lt "${offset}" ]
then
options="${options} -o ${offset}"
if [ 0 -lt "${offset}" ]
then
options="${options} -o ${offset}"