From: Daniel Baumann Date: Thu, 10 Sep 2009 09:00:40 +0000 (+0200) Subject: Adding (experimental) forcepersistentfsck bootoption to force fsck on root persistenc... X-Git-Tag: debian/2.0.15-1~286 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=a974d9cd39ed0ed6490c7894056c7c0666855994;p=live-boot-grml.git Adding (experimental) forcepersistentfsck bootoption to force fsck on root persistency device. --- 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"