As Petter pointed out[0], another solution is to update mtab before mountall.sh 
runs
in order to reflect the fact that /proc has already been mounted; then mount 
will not
attempt to mount /proc again.

[0]http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/2006-January/000715.html

Another solution is to refrain from trying to mount proc filesystems in 
mountall.sh.
That is:

- mount -av -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs
+ mount -av -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,proc

However, this has the result that additional proc fs mounts are skipped.  Some 
people
may be mounting proc at more than one location.  So how about the following?:

- mount -av -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs
+ mount -av -t proc >/dev/null 2>&1 || :   # Ignore error due to already 
mounted /proc
+ mount -av -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,proc

This is still not ideal because errors in mounting proc filesystems are still 
ignored;
however this kludge seems better than the current kludge.  Anyone see any 
problems?
If not then I will made the latter change.
-- 
Thomas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to