Package: ifupdown
Version: 0.8.13
Severity: normal

This is related to Bug#761909 (NFS not brought down during shutdown or
reboot due to the network dying too soon), which I'm still seeing on my
machine with ifupdown 0.8.13 and systemd 231-6, at least with wireless
connections (I haven't checked wired connections recently).

I looked at the dependencies of my NFS share mount; systemctl
list-dependencies oneforall.mount gives:

oneforall.mount
● ├─-.mount
● ├─system.slice
● └─network-online.target
●   └─networking.service

so in theory it should be working correctly. _However_, there is
nothing in there preventing dbus from being killed before the network
is brought down, and if dbus gets stopped too early then
wpa_supplicant will die too, and my wireless connection will die due to
wpa_supplicant dying, which forcefully brings down the whole network
even with systemd thinking it's still active.

The solution in this case is to add a dependency of networking.service
on wpa_supplicant.service (which in turns depends on dbus and therefore
prevents dbus from being brought down too early). Ideally this
dependency should only be added when a network connection that needs WPA
is brought up (and removed when no network connections depending on WPA
are up).

I have verified that this works at least on my system: testing by
forcing a runtime dependency of this sort manually seems to fix the NFS
share unmounting, as well as other network-related shutdown/reboot
issues I come across from time to time.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ifupdown depends on:
ii  adduser              3.115
ii  init-system-helpers  1.44
ii  iproute2             4.6.0-4
ii  libc6                2.24-2
ii  lsb-base             9.20160629

Versions of packages ifupdown recommends:
ii  isc-dhcp-client [dhcp-client]  4.3.5~b1-1

Versions of packages ifupdown suggests:
ii  ppp     2.4.7-1+3
pn  rdnssd  <none>

-- no debconf information

Reply via email to