X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=970853c79e020ff5c07356f77b5c6b14f20e4f25;hb=05dd30f7923913a060d7bef57b167386c988bc7c;hp=688c0a71205aa0daa8adb27cffbabea126b76329;hpb=a7e59be8118df46c9f43ba05561990ce3e62a81d;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 688c0a7..970853c 100755 --- a/scripts/live +++ b/scripts/live @@ -262,6 +262,10 @@ Arguments () PERSISTENT_PATH="${ARGUMENT#persistent-path=}" export PERSISTENT_PATH ;; + persistent-read-only) + PERSISTENT_READONLY="Yes" + export PERSISTENT_READONLY + ;; persistent-storage=*) PERSISTENT_STORAGE="${ARGUMENT#persistent-storage=}" @@ -1186,7 +1190,10 @@ try_snap () return 1 fi - echo "export ${snap_type}SNAP=${snap_relpath}:${snapdev}:${snapfile}" >> snapshot.conf # for resync on reboot/halt + if [ -z ${PERSISTENT_READONLY} ] + then + echo "export ${snap_type}SNAP=${snap_relpath}:${snapdev}:${snapfile}" >> snapshot.conf # for resync on reboot/halt + fi return 0 }