[Pkg-sysvinit-devel] Bug#386347: initscripts: BOOT FAILURE: checkroot.sh can't fsck /dev/shm/root because /dev/shm is mounted nodev

Chip Salzenberg chip at pobox.com
Thu Sep 7 15:07:53 UTC 2006


On Thu, Sep 07, 2006 at 04:11:07PM +0200, Petter Reinholdtsen wrote:
> [Chip Salzenberg]
> > The checkroot.sh init script sometimes needs to mknod the root
> > filesystem device as /dev/shm/root so it can fsck. [...]
> 
> Right.  Good point.  I have forgotten about that code.  It need to
> stop using /dev/shm/, as it is poluting the shm namespace.

Hrm.  Shirley, there's some name in there it could use safely...?  Whatever
that name is, checkroot.sh could mount a tmpfs on /dev/shm/<thatname> and
create the root dev node under it.  BTW, checkroot.sh *does* remove the
'root' node, once the fsck is done, so what's the pollution issue?

> An option might be to mount a private tmpfs (aka mounting it, chdir
> into it and umounting it, thus making it available only to the process
> running within it), but this will not make the life of mtab.sh easier.

What's the mtab.sh problem?
-- 
Chip Salzenberg <chip at pobox.com>




More information about the Pkg-sysvinit-devel mailing list