Bug#782142: systemd: Tries to mount NFS shares twice (?)
Michael Biebl
biebl at debian.org
Tue Feb 18 12:39:01 GMT 2025
Am 17.02.25 um 12:30 schrieb Mark Hindley:
> commit 9ba383edb0ca4308b367108dcf7b5e61b71eec51
> Author: Mark Hindley <mark at hindley.org.uk>
> Date: Mon Feb 17 11:23:09 2025 +0000
>
> if-up.d/mountnfs: completely noop if systemd is running.
>
> Closes: #782142
>
> diff --git a/debian/src/initscripts/etc/network/if-up.d/mountnfs b/debian/src/initscripts/etc/network/if-up.d/mountnfs
> index 9b1f47f2..5cde3246 100644
> --- a/debian/src/initscripts/etc/network/if-up.d/mountnfs
> +++ b/debian/src/initscripts/etc/network/if-up.d/mountnfs
> @@ -7,14 +7,9 @@
> # Also mounts SMB filesystems now, so the name of
> # this script is getting increasingly inaccurate.
>
> -# 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.
> +# Skip hook if system is running systemd.
> if [ -d /run/systemd/system ]; then
> - systemctl list-jobs | grep -q network.target && exit 0
> + exit 0
> fi
>
Given that systemd-sysv nowadays has a Conflicts against initscripts, I
think this change is kinda moot. You might just as well remove that code
completely.
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20250218/d820189c/attachment.sig>
More information about the Debian-init-diversity
mailing list