[Pkg-sysvinit-devel] How can mountall.sh be working?
Petter Reinholdtsen
pere at hungry.com
Mon Sep 11 22:26:33 UTC 2006
The current mountall.sh uses this mount command, after the proc file
systems are mounated
mount -a -t noproc,nfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs \
-O no_netdev
If I read it correctly, it will mount all mount points that are not
proc, as well as nfs, nfs4, smbfs, etc. Is that correct
interpretation of the mount command?
If that is the correct interpretation, I fail to see how mountall.sh
can work properly. It is not supposed to mount nfs, nfs4, etc file
systems. Is it?
I dropped the need to avoid proc file system mounts in that command,
but am unable to understand how the code can work properly.
I suspect this patch is needed. Am I right or just confused? It used
to look very similar to this in revision 724, before the code to hide
the /proc mount problem was added.
Index: debian/initscripts/etc/init.d/mountall.sh
===================================================================
--- debian/initscripts/etc/init.d/mountall.sh (revision 913)
+++ debian/initscripts/etc/init.d/mountall.sh (working copy)
@@ -22,7 +22,7 @@
# Mount local file systems in /etc/fstab.
#
mount_all_local() {
- mount -a -t nfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs \
+ mount -a -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda,noocfs2,nogfs \
-O no_netdev
}
pre_mountall
Time to head for bed. This do not make sense. Hope it is is better
in the moring. :)
Friendly,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list