Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 100967 Details for
Bug 152983
Optionally run checkfs during shutdown
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
backport to 1.12 branch
checkfs.patch (text/plain), 1.38 KB, created by
Daniel Drake (RETIRED)
on 2006-11-01 07:48:39 UTC
(
hide
)
Description:
backport to 1.12 branch
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2006-11-01 07:48:39 UTC
Size:
1.38 KB
patch
obsolete
>Index: baselayout-1.12.5/init.d/halt.sh >=================================================================== >--- baselayout-1.12.5.orig/init.d/halt.sh >+++ baselayout-1.12.5/init.d/halt.sh >@@ -204,6 +204,20 @@ if [[ ${mount_worked} -eq 1 ]]; then > /sbin/sulogin -t 10 /dev/console > fi > >+# Conditionally run filesystem checks. Note that /forcefsck skips this and >+# causes the forced checks to run upon boot. This is because doing forced >+# checks then removing /forcefsck is not practical at this point. >+conf=$(add_suffix /etc/conf.d/checkfs) >+if [[ -e ${conf} ]] ; then >+ ( >+ . ${conf} >+ if [[ ${FSCK_SHUTDOWN} == "yes" && ! -f /forcefsck ]]; then >+ . /etc/init.d/checkfs >+ start >+ fi >+ ) >+fi >+ > # Inform if there is a forced or skipped fsck > if [[ -f /fastboot ]]; then > echo >Index: baselayout-1.12.5/etc/conf.d/checkfs >=================================================================== >--- /dev/null >+++ baselayout-1.12.5/etc/conf.d/checkfs >@@ -0,0 +1,9 @@ >+# FSCK_SHUTDOWN causes checkfs to trigger during shutdown as well as startup. >+# The end result of this is that if any periodic non-root filesystem checks are >+# scheduled, under normal circumstances the actual check will happen during >+# shutdown rather than at next boot. >+# This is useful when periodic filesystem checks are causing undesirable >+# delays at startup, but such delays at shutdown are acceptable. >+ >+FSCK_SHUTDOWN="no" >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 152983
:
100578
|
100579
|
100872
| 100967