[Pkg-utopia-maintainers] Bug#689320: network-manager: async nfs mounts don't work with NetworkManager

John Hughes john at calva.com
Mon Oct 1 15:12:57 UTC 2012


Package: network-manager
Version: 0.9.4.0-6
Severity: normal

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?

	I have a nfs mountpoint configured in fstab:

	olympic:/local	/usr/local	nfs4	sec=krb5	0	0

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

	I reboot the machine.  I expect NetworkManager to call the mountnfs
	script in /etc/network/if-up.d to mount the nfs filesystem when the
	interface becomes available.

   * What was the outcome of this action?

	The filesystem wasn't mounted

   * What outcome did you expect instead?

	I expected it to be mounted.


Why it doesn't work:

	/etc/NetworkManager/dispatcher.d/01ifupdown calls the scripts in
	/etc/network/if-up.d with ADDRFAM="NetworkManager"

	/etc/network/if-up.d/mountnfs expects ADDRFAM to be inet or inet6,
	it knows nothing of this "NetworkManager" address family.

	The actual code in mountnfs is:

if [ no != "$ASYNCMOUNTNFS" ]; then
    # Not for loopback!
    [ "$IFACE" != "lo" ] || exit 0

    [ "$ADDRFAM" = "inet" ] || [ "$ADDRFAM" = "inet6" ] || exit 0

	Whoops.

	Either mountnfs should be changed to expect ADDRFAM "NetworkManager"
	or  01ifupdown should pass the correct address family.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages network-manager depends on:
ii  adduser                3.113+nmu3
ii  dbus                   1.6.2-2
ii  dpkg                   1.16.8
ii  isc-dhcp-client        4.2.4-2
ii  libc6                  2.13-35
ii  libdbus-1-3            1.6.8-1
ii  libdbus-glib-1-2       0.100-1
ii  libgcrypt11            1.5.0-3
ii  libglib2.0-0           2.33.12+really2.32.4-1
ii  libgnutls26            2.12.20-1
ii  libgudev-1.0-0         175-7
ii  libnl-3-200            3.2.7-4
ii  libnl-genl-3-200       3.2.7-4
ii  libnl-route-3-200      3.2.7-4
ii  libnm-glib4            0.9.4.0-6
ii  libnm-util2            0.9.4.0-6
ii  libpolkit-gobject-1-0  0.105-1
ii  libuuid1               2.20.1-5.2
ii  lsb-base               4.1+Debian7
ii  udev                   175-7
ii  wpasupplicant          1.0-2

Versions of packages network-manager recommends:
pn  crda          <none>
ii  dnsmasq-base  2.63-4
ii  iptables      1.4.14-3
ii  modemmanager  0.5.2.0-2
ii  policykit-1   0.105-1
ii  ppp           2.4.5-5.1+b1

Versions of packages network-manager suggests:
pn  avahi-autoipd  <none>

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list