On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote:

> Shouldn't that be taken care of by the "/etc/fstab" entries?

Those say whether the filesystem should be checked, not when.

> Obviously, if "/usr" is on a separate partition, it needs to be mounted
> at the time when "/usr/sbin/fsck" is expected to be present.

fsck is in /sbin, but that's not the point. If you have an initramfs,
fsck should be in it and run before /usr is mounted rw, which means it
has to be done by the initramfs. It's too late to do it when control has
been handed over because then /usr is already mounted rw.
 
> 
> On Sat, Jan 13, 2018 at 2:54 PM, Neil Bothwick <n...@digimed.co.uk>
> wrote:
> 
> > On Sat, 13 Jan 2018 21:29:12 +0200, Alan McKinnon wrote:
> >  
> > > fwiw, fsck here runs automagically at startup whenever the fs is
> > > dirty, and I do not use an initramfs at all. Not sure exactly what
> > > code does this, I assume it's something in OpenRC.  
> >
> > It is, and the reason it works is that you do not use an initramfs
> > that mounts /usr before openrc gets a look in. If you use an
> > initramfs, that should take care of running fsck when needed.
> >
> >
> > --
> > Neil Bothwick
> >
> > Puns are bad, but poetry is verse...
> >  




-- 
Neil Bothwick

If a book about failures doesn't sell, is it a success?

Attachment: pgpQ9bti5xELZ.pgp
Description: OpenPGP digital signature

Reply via email to