X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=6af9825042fddd13b20b48f23e3ef88437765a88;hb=8746a3f913517cc25959f8a9a113c0b11878f917;hp=2a146d7a629c32dc06537d007ce9b650be63293e;hpb=eb06418dd7cee703f3e53cc7a51cb450b5d3b292;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 2a146d7..6af9825 100755 --- a/scripts/live +++ b/scripts/live @@ -71,6 +71,11 @@ Arguments () export FETCH ;; + forcepersistentfsck) + FORCEPERSISTENTFSCK="Yes" + export FORCEPERSISTENTFSCK + ;; + hook=*) HOOK="${ARGUMENT#hook=}" export HOOK @@ -345,6 +350,13 @@ Arguments () export PERSISTENT_PATH ;; + persistent-subtext=*) + root_persistence="${root_persistence}-${ARGUMENT#persistent-subtext=}" + home_persistence="${home_persistence}-${ARGUMENT#persistent-subtext=}" + root_snapshot_label="${root_snapshot_label}-${ARGUMENT#persistent-subtext=}" + home_snapshot_label="${home_snapshot_label}-${ARGUMENT#persistent-subtext=}" + ;; + nopersistent) NOPERSISTENT="Yes" export NOPERSISTENT @@ -1221,6 +1233,11 @@ setup_unionfs () cowdevice=${cowprobe} cow_fstype=$(get_fstype "${cowprobe}") cow_mountopt="rw,noatime" + + if [ "${FORCEPERSISTENTFSCK}" = "Yes" ] + then + fsck -y ${cowdevice} + fi else log_warning_msg "Unable to find the persistent medium" cowdevice="tmpfs"