Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 291045

Summary: Add boot parameter for /etc/init.d/checkfs to check all (or selected) filesystems.
Product: Gentoo Linux Reporter: Jaak Ristioja <jaak>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed patch for checkroot and checkfs

Description Jaak Ristioja 2009-10-29 17:34:40 UTC
Currently the /etc/init.d/checkfs does not check file systems even when the "gentoo=forcefsck" boot parameter is given. Please add a boot parameter to make it check them.

I suggest that the "forcefsck" parameter be used for both the checkfs and checkroot init scripts, and a new "forcerootfsck" be added for the checkroot script only.
Comment 1 Jaak Ristioja 2009-10-29 17:35:43 UTC
Created attachment 208649 [details, diff]
Proposed patch for checkroot and checkfs
Comment 2 Sebastian Luther (few) 2009-10-29 20:27:42 UTC
Against which version of baselayout is your patch?
Comment 3 Jaak Ristioja 2009-10-30 05:39:36 UTC
The latest stable one on amd64, version 1.12.11.1. The patch was actually just meant to demonstrate the simplicity of such change in code.
Comment 4 SpanKY gentoo-dev 2009-10-30 07:18:46 UTC
this is already in openrc:
_forcefsck()
{
    [ -e /forcefsck ] || get_bootparam forcefsck
}
Comment 5 Jaak Ristioja 2009-10-30 09:25:10 UTC
Excuse me, but what is openrc?
Comment 6 SpanKY gentoo-dev 2009-10-30 16:45:05 UTC
baselayout-2