Bug#768644: systemd: missing dependency on /var being mounted

Michael Biebl biebl at debian.org
Sat Nov 8 23:21:09 GMT 2014


Am 08.11.2014 um 23:34 schrieb David Kozub:
> Package: systemd
> Version: 215-5+b1
> Severity: normal
> 
> Dear Maintainer,
> 
> I'm seeing some systemd units fail. I think the cause is that there is 
> no explicit dependency on /var in the units even if they need /var. I 
> have /var on a different filesystem than /.
> 
> I'm seeing these failed units (from systemctl --failed):
> 
> • atd.service   loaded failed failed Deferred execution scheduler
> • exim4.service loaded failed failed LSB: exim Mail Transport Agent
> 
> and debian-fixup.service on a different machine.
> 
> systemctl -l status atd.service exim4.service shows:
> 
> ...
> Nov 08 21:48:41 jessie atd[320]: Cannot change to /var/spool/cron/atjobs: No such file or directory
> ...
> Nov 08 21:48:42 jessie exim4[322]: Starting MTA:/usr/sbin/update-exim4.conf: Error, missing /var/lib/exim4, exiting.
> ...

atd.service and exim4.service do use DefaultDependencies=yes, so they
should be ordered after local-fs.target (via After: basic.target ->
After: sysinit.target -> After local-fs.target)


What is quite odd is the following, I'm looking specifically at Unit
local-fs.target from David's log:


Unit local-fs.target:
...
	Requires: var.mount
	Requires: tmp.mount
	Requires: home.mount
	Requires: -.mount
...
	After: local-fs-pre.target
	After: systemd-remount-fs.service
	After: home.mount
	After: tmp.mount
	After: systemd-fsck-root.service
	After: -.mount


There is no After: var.mount here!

Does anyone have an idea, what's going on there?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141109/f34da274/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list