Bug#782142: systemd: Tries to mount NFS shares twice (?)

Pierre Ynard linkfanel at yahoo.fr
Sat Mar 9 18:40:01 GMT 2019

severity 782142 minor
tags 782142 moreinfo


> > ifup[370]: mount.nfs: /home/nfs is busy or already mounted
> That hook is shipped by initscripts, thus reassigning.
> This hook should be a nop if systemd is active.

Are you sure this is the issue? /etc/network/if-up.d/mountnfs already
contains, and I think already contained at the time, the following
snippet to detect systemd, that you added yourself in #746587:

> # Skip the mountnfs hook when being triggered by the networking SysV init
> # script and instead use the systemd built-in mechanisms to mount remote
> # file systems.
> # This avoids a deadlock caused by the rpcbind SysV init script depending
> # on $network and the $network LSB facility being provided by the networking
> # SysV init script.
> if [ -d /run/systemd/system ]; then
>                 systemctl list-jobs | grep -q network.target && exit 0
> fi

Isn't that check adequate already? How should it be modified if not?


Pierre Ynard

More information about the Debian-init-diversity mailing list