debhelper: Because it is listing tmpfiles in systemd's only, conf overriding is not working
Michael Biebl
biebl at debian.org
Fri May 4 13:13:53 BST 2018
Am 04.05.2018 um 13:47 schrieb Michael Biebl:
> Dropping #TMPFILES# means, systemd-tmpfiles will act on all tmpfiles.
> This would be a bit like if upgrading rsyslog would restart all system
> services (including rsyslog). That doesn't feel right.
> So I don't think dropping #TMPFILES# is the right approach.
To iterate on that:
We ship quite a few tmpfile configs and during a (dist-)upgrade
systemd-tmpfiles will be called multiple times. It seems wasteful, if
systemd-tmpfile would act on all files over and over again.
More importantly though, not all resources, as required in the tmpfile
might be available when such a systemd-tmpfiles call is made. There is a
time window between the package being unpacked and the tmpfile existing
on disk and the package postinst being run, which e.g. needs to setup a
user that is referenced in the tmpfile.
Admittedly, this is less of an issue for tmpfiles then for service files.
One valid use cases this touches though is, that overriding tmpfiles in
/etc/tmpfiles.d should be supported. I.e. if there is a
/usr/lib/tmpfiles.d/dbus.conf and an admin wants to tweak that by
shipping a /etc/tmpfiles.d/dbus.conf, I don't think the package should
override that.
Afaics, this could easily be fixed by only using the name of the .conf
file, not the full path, so dh_installsystemd/dh_installinit would have
to generate
systemd-tmpfiles --create dbus.conf
instead of
systemd-tmpfiles --create /usr/lib/tmpfiles.d/dbus.conf
Felipe et al, what do you think?
(CC pkg-systemd-maintainers to have more eyes on this)
Michael
--
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: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180504/ce9e9594/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list