Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2580 Details for
Bug 5570
checkroot and checkfs ignore forced or skipped fsck
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
diff for checkroot
checkroot.diff (text/plain), 1.11 KB, created by
Chris PeBenito (RETIRED)
on 2002-07-25 11:28:26 UTC
(
hide
)
Description:
diff for checkroot
Filename:
MIME Type:
Creator:
Chris PeBenito (RETIRED)
Created:
2002-07-25 11:28:26 UTC
Size:
1.11 KB
patch
obsolete
>--- checkroot.orig Sat May 11 21:54:42 2002 >+++ checkroot Thu Jul 25 11:06:05 2002 >@@ -9,21 +9,33 @@ > } > > start() { >- ebegin "Remounting root filesystem read-only (if necessary)" >- mount / -n -o remount,ro &>/dev/null >- eend $? >- ebegin "Checking root filesystem" >- fsck -a / >- if [ "$?" -eq 0 ] >+ if [ ! -f /fastboot ] > then >- eend 0 >- elif [ "$?" -eq 1 ] >- then >- ewend 1 "Filesystem repaired" >- else >- eend 2 "Filesystem couldn't be fixed :(" >- /sbin/sulogin ${CONSOLE} >- /sbin/reboot -f >+ ebegin "Remounting root filesystem read-only (if necessary)" >+ mount / -n -o remount,ro &>/dev/null >+ eend $? >+ >+ ebegin "Checking root filesystem" >+ if [ -f /forcefsck ] >+ then >+ ewarn "A full fsck has been forced" >+ fsck -C -f -a / >+ # /forcefsck isn't deleted because checkfs needs it. >+ # it'll be deleted in that script. >+ else >+ fsck -a / >+ fi >+ if [ "$?" -eq 0 ] >+ then >+ eend 0 >+ elif [ "$?" -eq 1 ] >+ then >+ ewend 1 "Filesystem repaired" >+ else >+ eend 2 "Filesystem couldn't be fixed :(" >+ /sbin/sulogin ${CONSOLE} >+ /sbin/reboot -f >+ fi > fi > > ebegin "Remounting root filesystem read/write"
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 5570
: 2580 |
2581
|
2582