Package: initscripts
Version: 2.86.ds1-61
See also #496007 and #481028.
This avoids waiting for interfaces if the box doesn't have any network
filesystems.
Tested on my boxes (where I have no network filesystems), not tested
where there are network filesystems but it's a pretty simple patch.
Adrian
--
Email: [email protected] -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org
--- mountnfs.orig 2009-01-18 20:10:14.000000000 +0000
+++ mountnfs 2009-01-18 20:14:03.000000000 +0000
@@ -13,7 +13,7 @@
. /lib/lsb/init-functions
. /lib/init/mount-functions.sh
-do_start() {
+set_env() {
[ -f /etc/fstab ] || return
#
# Read through fstab line by line. If it is NFS, set the flag
@@ -90,7 +90,9 @@
done
exec 0<&9 9<&-
+}
+do_start() {
#
# Initialize nfs-common (which starts rpc.statd, rpc.gssd
# and/or rpc.idmapd, and loads the right kernel modules if
@@ -132,6 +134,11 @@
# Using 'no !=' instead of 'yes =' to make sure async nfs mounting is
# the default even without a value in /etc/default/rcS
+set_env
+if [ "$start_nfs" = "no" ] && [ ! "$NETFS" ] && [ ! "$NETDEV" ]; then
+ exit 0
+fi
+
if [ no != "$ASYNCMOUNTNFS" ]; then
# Not for loopback!
[ "$IFACE" != "lo" ] || exit 0