diff options
| author | Daniel Baumann <daniel@debian.org> | 2009-09-10 11:00:40 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:05 +0100 |
| commit | a974d9cd39ed0ed6490c7894056c7c0666855994 (patch) | |
| tree | 4dbfe3ea1f77cec21c4bb29f0db10c1ac2524d93 | |
| parent | 05b3ad763664fa23a5beecd03ebdcdb81ecde87b (diff) | |
| download | live-boot-a974d9cd39ed0ed6490c7894056c7c0666855994.tar.gz live-boot-a974d9cd39ed0ed6490c7894056c7c0666855994.zip | |
Adding (experimental) forcepersistentfsck bootoption to force fsck on root persistency device.
| -rwxr-xr-x | scripts/live | 10 |
1 files changed, 10 insertions, 0 deletions
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" |
