diff options
| author | Michal Suchanek <hramrach@centrum.cz> | 2008-05-31 21:18:47 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:47:59 +0100 |
| commit | f02ff60da1a862bb4eb0631cb9b7e527ffa1f32e (patch) | |
| tree | 16686c55dd231cf866efbaee8619901af59da1a5 /scripts/live-helpers | |
| parent | 9be31760d902a1728a4b786f2a8844697bad5038 (diff) | |
| download | live-boot-f02ff60da1a862bb4eb0631cb9b7e527ffa1f32e.tar.gz live-boot-f02ff60da1a862bb4eb0631cb9b7e527ffa1f32e.zip | |
Workaround loop-aes-utils losetup incompatibility
Pass -r option to losetup when setting up loop device for root image
so that readonly files can be set up as well.
Diffstat (limited to 'scripts/live-helpers')
| -rw-r--r-- | scripts/live-helpers | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers index cc73aa3..02c3e55 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -167,6 +167,7 @@ setup_loop () local pattern=${3} local offset=${4} local encryption=${5} + local readonly=${6} modprobe -q -b "${module}" udevsettle @@ -178,6 +179,11 @@ setup_loop () dev=$(sys2dev "${loopdev}") options='' + if [ -n ${readonly} ] + then + options="${options} -r" + fi + if [ 0 -lt "${offset}" ] then options="${options} -o ${offset}" |
