[Pkg-sysvinit-devel] Bug#383073: mountall.sh: tries to mount filesystems on remote block devices

Petter Reinholdtsen pere at hungry.com
Tue Sep 5 13:30:30 UTC 2006


tags 383073 + patch
thanks

Can you test this patch and let us know if it work or not?

Index: debian/changelog
===================================================================
--- debian/changelog	(revision 826)
+++ debian/changelog	(working copy)
@@ -25,6 +25,7 @@
   * Split killall5, last, lastb, mesg and pidof out of the sysvinit
     package into a new sysvutils package to make it easier to replace
     init. (Closes: #385722)
+  * Do not try to mount netdev file systems in mountall.sh. (Closes: #383073)
 
  -- Petter Reinholdtsen <pere at debian.org>  Wed, 26 Jul 2006 11:37:23 +0200
 
Index: debian/initscripts/etc/init.d/mountall.sh
===================================================================
--- debian/initscripts/etc/init.d/mountall.sh	(revision 815)
+++ debian/initscripts/etc/init.d/mountall.sh	(working copy)
@@ -25,7 +25,7 @@
 		log_action_begin_msg "Mounting local filesystems"
 		mount -a -t proc >/dev/null 2>&1  # Ignore error message due to /proc already being mounted
 		ES_TO_REPORT=$?
-		mount -a -t noproc,nfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs
+		mount -a -t noproc,nfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs -O no_netdev
 		ES=$?
 		ES_TO_REPORT=$(($ES_TO_REPORT | $ES))
 		if [ 0 = "$ES_TO_REPORT" ]
@@ -39,7 +39,7 @@
 		mount -a -t proc >/dev/null 2>&1  # Ignore error message due to /proc already being mounted
 		ES=$?
 		[ 0 = "$ES" ] || log_failure_msg "Mounting proc filesystems failed with error code ${ES}."
-		mount -a -v -t noproc,nfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs
+		mount -a -v -t noproc,nfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs -O no_netdev
 		ES=$?
 		if [ 0 = "$ES" ]
 		then

It is completely untested, but all I do is add some '-O no_netdev'
when 'mount -a' is called.

Friendly,
-- 
Petter Reinholdtsen




More information about the Pkg-sysvinit-devel mailing list