[Pkg-sysvinit-devel] Bug#331397: initscripts: mountall.sh should skip procfs

Adrian Bridgett adrian at dyadic.com
Mon Oct 3 10:17:24 UTC 2005


On Mon, Oct  3, 2005 at 12:05:26 +0200 (+0200), Petter Reinholdtsen wrote:
> [Adrian Bridgett]
> > mountall.sh doesn't skip mounting /proc (which is done earlier by
> > mountvirtfs (and udev too if it needs to)).
> 
> I suspect this happen because /proc isn't listed in /etc/fstab at that
> point, and the reason is that mountvirtfs mounts /proc/ before /etc/
> is writable.

The mount call fails with an EBUSY error if that helps (there wasn't
actually any error output from the mount command itself, I had to
strace it (strace -e trace=mount).

> I'm pleased to learn that the status reporting already is working to
> help us detect problems.

Yeah - the user said he really liked it :-)

> > Adding "noproc" to the list of filesystems fixed the problem.
> 
> That is not really an option, as mountvirtfs only mount /proc, not
> other proc mount points.  (consider chroots with need their own proc
> mount.

Ah, fair enough.

> Not sure how to properly solve this.

udev does a this - just FYI (in case it shouldn't be doing it or in
case it helps fix the problem):

[ -d /proc/1 ] || mount -n /proc

Adrian
-- 
Adrian Bridgett <adrian at dyadic.com>,  Technology Consultant
Switchboard: 01256-811125  Mobile: 0777-3778251
Syan - Technology Services Division, Riverside View, Basing Road,
Old Basing, Basingstoke, Hampshire, RG24 7AL




More information about the Pkg-sysvinit-devel mailing list