[Pkg-sysvinit-devel] Bug#746587: Use systemd built-in mechanisms for mounting remote file systems like NFS during early boot

Michael Biebl biebl at debian.org
Thu May 1 17:35:02 UTC 2014


Package: initscripts
Version: 2.88dsf-53
Severity: important
File: /etc/network/if-up.d/mountnfs
Tags: patch

The /etc/init.d/networking SysV init script provides the $network LSB facility
which is mapped to network.target in systemd.

This SysV init script is run during early boot (rcS) and calls the mountnfs
if-up.d hook which in turn calls /etc/init.d/rpcbind start.

The rpcbind SysV init script though depends on $network itself. This leads
to a dependency loop.

Under systemd, where those dependencies are evaluated during runtime this
results in a dead lock.

Since systemd has builtin support for mounting remote files systems, we
simply skip this hook during early.

Eventually, we should make rpcbind socket activate to break this
dependency loop, but for now this workaround will do.

As this currently breaks setups where systemd is used in combination
with NFS, we would appreciate if you can apply the attached patch in
your next upload as soon as possible.

Cheers,
Michael

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

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

Versions of packages initscripts depends on:
ii  coreutils       8.21-1.2
ii  debianutils     4.4
ii  libc6           2.18-5
ii  lsb-base        4.1+Debian12
ii  mount           2.20.1-5.7
ii  sysv-rc         2.88dsf-53
ii  sysvinit-utils  2.88dsf-53

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42.9-3
ii  psmisc     22.21-2

initscripts suggests no packages.

-- Configuration Files:
/etc/default/tmpfs changed [not included]
/etc/network/if-up.d/mountnfs changed [not included]

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-systemd-built-in-mechanisms-for-mounting-remote-.patch
Type: text/x-diff
Size: 1625 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20140501/c147380b/attachment.patch>


More information about the Pkg-sysvinit-devel mailing list