X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=6af9825042fddd13b20b48f23e3ef88437765a88;hb=8746a3f913517cc25959f8a9a113c0b11878f917;hp=db1d355d0ccd38fe3c0c0c0987e4cd7dc5ab14c6;hpb=ee5c95140e3860cde869cefc66caaecb0e377209;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index db1d355..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 @@ -1228,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"