[Pkg-sysvinit-devel] Bug#386449: initscripts: does not mount NFS due to missing /var/run/network

Arjan Oosting arjanoosting at home.nl
Thu Sep 7 17:43:18 UTC 2006


Package: initscripts
Version: 2.86.ds1-16
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

The new ifup script used to mount NFS filesystems does not mount any
filesystems anymore. The parent directory of the lockdir is not
available so the lockdir can not be created and the ifup scripts bails
out.

After I added the creation of /var/run/network to the ifup script it
worked again. (Maybe you could also add the directory to deb itself,
but I seem to remember that directories inside /var/run might not be
preserved during reboot so then the only option is adjustment of the
ifup script) 

I have attached my trivial patch. 

Greetings Arjan

- -- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-3-nebula
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)

Versions of packages initscripts depends on:
ii  debianutils                  2.17        Miscellaneous utilities specific t
ii  e2fsprogs                    1.39-1      ext2 file system utilities and lib
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  lsb-base                     3.1-15      Linux Standard Base 3.1 init scrip
ii  mount                        2.12r-10    Tools for mounting and manipulatin

initscripts recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFAFo2UALvsZYuOJARAm6zAJ95DeUkjeEqNuVOE+B4HmVDH9h1RwCgmA+6
CEd4qN9e/9jzmXAQFZxn/mg=
=mR3U
-----END PGP SIGNATURE-----
-------------- next part --------------
diff -u sysvinit-2.86.ds1/debian/changelog sysvinit-2.86.ds1/debian/changelog
--- sysvinit-2.86.ds1/debian/changelog
+++ sysvinit-2.86.ds1/debian/changelog
@@ -1,3 +1,11 @@
+sysvinit (2.86.ds1-17.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Also create possibly non-existant parent directory of lock directory
+    /var/run/network/mountnfs in ifup script (Closes: #....).    
+
+ -- Arjan Oosting <arjanoosting at home.nl>  Thu,  7 Sep 2006 19:25:56 +0200
+
 sysvinit (2.86.ds1-17) unstable; urgency=low
 
   * Make some log messages more usplash friendly in the VERBOSE=yes case.
diff -u sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs
--- sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs
+++ sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs
@@ -130,6 +130,7 @@
 [ "$IFACE" != "lo" ] || exit 0
 
 # Lock around this otherwise insanity may occur
+mkdir /var/run/network          2>/dev/null || exit 0
 mkdir /var/run/network/mountnfs 2>/dev/null || exit 0
 
 do_start


More information about the Pkg-sysvinit-devel mailing list