[Pkg-sysvinit-devel] How can mountall.sh be working?

Henrique de Moraes Holschuh hmh at debian.org
Mon Sep 11 23:56:03 UTC 2006


On Tue, 12 Sep 2006, Petter Reinholdtsen wrote:
> 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

This is correct, the first "no" negates *all* others (see mount manpage).

> 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?

It wil not mount proc, it will not mount nfs, it will not mount gfs, etc.

> 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?

Probably it works because something else is being intelligent and working
around the breakage...

> 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. :)

Try "mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs..."

>From the manpage:

      More than one type may be specified in a comma  separated list.  The
      list of file system types can be prefixed with no to specify the file
      system types on which no action should be taken.  (This can be
      meaningful with the -a option.)

      For example, the command:
           mount -a -t nomsdos,ext
      mounts all file systems except those of type msdos and ext.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



More information about the Pkg-sysvinit-devel mailing list