* checkroot.sh and fsck the root partition
@ 2012-02-15 17:57 Holger Freyther
2012-02-15 19:45 ` Chris Larson
0 siblings, 1 reply; 2+ messages in thread
From: Holger Freyther @ 2012-02-15 17:57 UTC (permalink / raw)
To: openembedded-devel
Hi,
I know most of use ubifs/jffs2 but I have one device with a ext3/ext4
partition and would like to run fsck as part of the boot (with auto fix up).
Besides installing the e2fs fsck, fixing the fstab fsck will not be executed.
E.g. if I take a look at this script:
http://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
it is not clear how 'rootcheck' could ever be 'yes'.
Any comments?
holger
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: checkroot.sh and fsck the root partition
2012-02-15 17:57 checkroot.sh and fsck the root partition Holger Freyther
@ 2012-02-15 19:45 ` Chris Larson
0 siblings, 0 replies; 2+ messages in thread
From: Chris Larson @ 2012-02-15 19:45 UTC (permalink / raw)
To: openembedded-devel
On 2/15/12, Holger Freyther <holger+oe@freyther.de> wrote:
> I know most of use ubifs/jffs2 but I have one device with a ext3/ext4
> partition and would like to run fsck as part of the boot (with auto fix up).
> Besides installing the e2fs fsck, fixing the fstab fsck will not be
> executed.
>
> E.g. if I take a look at this script:
> http://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
>
> it is not clear how 'rootcheck' could ever be 'yes'.
My guess, and it is a guess (though potentially comparing against the
original debian initscripts we started with, or looking through git
history, may be informative) is that the original default value of
rootcheck was yes, and hence the conditional in the loop setting
rootcheck=no made sense, but it was changed at some point in the
history due to the use of non-checkable filesystems.
If we change the default back, we'll break everyone using the stock
fstab or one based on it, as the default sets pass=1 for the 'rootfs'
mount. One option would be to source /etc/default/rcS after the
definition of the defaults prior to the loop, thereby allowing a per
machine rcS which changes the default value.
--
Christopher Larson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-15 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 17:57 checkroot.sh and fsck the root partition Holger Freyther
2012-02-15 19:45 ` Chris Larson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.