Bug#774335: systemd-sysv: NIS-based autofs mounts may not show up when using systemd

Luke Diamand luke at diamand.org
Thu Jan 1 01:39:02 GMT 2015


Package: systemd-sysv
Version: 218-3
Severity: important
Tags: upstream

Dear Maintainer,

I'm finding that autofs mounts which come from NIS maps don't show up when
using systemd.

I have a VM with an amd64 install of Jessie which uses autofs with a NIS map.
Booting up, and the autofs mount points do not show up. If I restart autofs
manually they then start working properly. I have an almost identical VM which
has sysvinit instead of systemd where autofs works just fine.

Looking at the logging in journalctl, it looks like autofs is being started
before NIS (or possibly at exactly the same time).

Jan 01 00:49:41 jessie-test systemd[1]: Inserted module 'autofs4'
Jan 01 00:49:43 jessie-test nis[435]: Setting NIS domainname to:
local.diamand.org.
Jan 01 00:49:43 jessie-test autofs[436]: Starting automount....
Jan 01 00:49:44 jessie-test nis[435]: Starting NIS services: ypbind.

sysv-generator seems to correctly generate an autofs.service file which has a
dependency on NIS, specifically, ypbind:

$ grep "After" autofs.service
After=network-online.target remote-fs.target systemd-journald-dev-log.socket
ypbind.service nslcd.service slapd.service

But nothing in the nis.service file mentions ypbind, and so the dependency
never gets setup, and the ordering isn't reliable.

$ grep ypbind nis.service
-- nothing --

Probably this means that if you're lucky, the timing will work out, and if
you're not, it won't!

I'm using systemd-syv version 218-3 from experimental on top of Jessie.



-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages systemd-sysv depends on:
ii  systemd  218-3

systemd-sysv recommends no packages.

systemd-sysv suggests no packages.

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list