projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b3ad7
)
Adding (experimental) forcepersistentfsck bootoption to force fsck on root persistenc...
author
Daniel Baumann
<daniel@debian.org>
Thu, 10 Sep 2009 09:00:40 +0000
(11:00 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:48:05 +0000
(17:48 +0100)
scripts/live
patch
|
blob
|
history
diff --git
a/scripts/live
b/scripts/live
index
db1d355
..
6af9825
100755
(executable)
--- 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"