[Pkg-sysvinit-devel] Bug#388761: initscripts: Moving NFS mounts to /etc/network/if-up.d/mountnfs breaks my diskless system

Tim Phipps tim at phipps-hutton.freeserve.co.uk
Fri Sep 22 12:47:42 UTC 2006


Package: initscripts
Version: 2.86.ds1-20
Severity: important

Setting this to important since it won't break simple systems.
I'm using the initramfs boot=nfs aproach to run a diskless system. I
have to remove eth0 from the auto line in /etc/network/interfaces
otherwise "ifup -a" hangs the system. I have this in
/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface.
auto lo
iface lo inet loopback

# The primary network interface.
# This is already done by the nfs boot scripts so the auto line is
# disabled.
#auto eth0
iface eth0 inet dhcp

EOF

And now if-up -a doesn't run /etc/network/if-up.d/mountnfs.
I can work around this by adding a fantasy interface to
/etc/network/interfaces:

auto eth1
iface eth1 inet static
  address 192.168.1.2
  gateway 192.168.1.1
  netmask 255.255.255.0

which works even though there is no eth1. I don't know what the real fix
is, I'd just put /etc/init.d/mountnfs.sh back so it runs just after
/etc/init.d/networking.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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




More information about the Pkg-sysvinit-devel mailing list