X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=02c3e55ac9fa855d8429a728828b7c3da4e98127;hb=478ce068a690a986456b8d8159e9c3937c364868;hp=cc73aa349315f658a2354d4e351ba075379e5e1c;hpb=f7844126b88fd104016316b0dfa5a8c731a63a05;p=live-boot-grml.git 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}"