From a974d9cd39ed0ed6490c7894056c7c0666855994 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 10 Sep 2009 11:00:40 +0200 Subject: [PATCH] Adding (experimental) forcepersistentfsck bootoption to force fsck on root persistency device. --- scripts/live | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" -- 2.1.4