Skip to content

Commit

Permalink
Adding (experimental) forcepersistentfsck bootoption to force fsck on…
Browse files Browse the repository at this point in the history
… root persistency device.
  • Loading branch information
daniel-baumann committed Sep 10, 2009
1 parent 9633972 commit 8746a3f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/live
Expand Up @@ -71,6 +71,11 @@ Arguments ()
export FETCH
;;

forcepersistentfsck)
FORCEPERSISTENTFSCK="Yes"
export FORCEPERSISTENTFSCK
;;

hook=*)
HOOK="${ARGUMENT#hook=}"
export HOOK
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8746a3f

Please sign in to comment.