On Sun, May 12, 2013 at 02:00:48PM +0100, Roger Leigh wrote:
> 
> I'm developing support for mounting the /usr (and /etc) filesystems in
> the initramfs, to guarantee that /usr is present before init starts,
> but I've come across a small problem.  We need to check the /usr
> filesystem in the same manner as the root filesystem in
> /etc/init.d/checkroot.sh prior to mounting it read-write, since we
> don't want to check it with the other filesystems in checkfs.sh because
> that's too late.

If you have an initramfs, why don't you do things right, and have both
the root and usr get checked **before*** they are mounted.  That's
actually the much better way to go, since it's safer and you won't
have to reboot if e2fsck needs modify a mounted file system (which is
only barely safe if it is mounted read-only, and then ***only*** if
you reboot if e2fsck needed to make any changes).

The read-ony root was a hack that was implemented because in the early
days we didn't have initrd's (or later initramfs), and the idea was to
keep the root file system small, and not modified very often, so the
likelihood of needing to repair corruption was kept low.  With /usr,
the chances that you will need to fix corruption problems, and then
reboot, is much higher.

                                                - Ted


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to