networking.service does not prevent ifdown with network file systems

Martin Pitt mpitt at debian.org
Sun Dec 27 18:58:06 GMT 2015


Package: ifupdown
Version: 0.8

Hello,

/etc/init.d/networking has some functionality to check if the root
file system or swap are on a network file system, in
check_network_file_systems() and check_network_swap(). In that case,
the interfaces are not ifdown'ed during shutdown, so that these
network file systems can be cleanly unmouted at the very end.

However, the new networking.service does not do that.  So unmounting
these network file systems will hang and fail as the interface is
already down. Root on NFS or even more so iSCSI is rather popular, so
this is quite an important regression.

Perhaps these checks can be put into ifdown itself and be done with
"ifdown -a"? Then you can still ifdown an individual interface (which
is usually deliberately done by the admin, even if it means shooting
yourself into the foot), but it would DTRT when being called by the
init.d script or the systemd unit. Alternatively this could become a
new option such as --check-netfs that the init scripts use.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20151227/10e25a3f/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list