Bug#894510: debhelper: Because it is listing tmpfiles in systemd's only, conf overriding is not working

Niels Thykier niels at thykier.net
Fri May 11 18:39:00 BST 2018


Seyeong Kim:
> Hello
> 
> I tested them but symptom is still there
> 
> so I put “print “#TMPFILES#” on autoscripts/postinst-init-tmpfiles like below
> 
> ###################
> if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
> # In case this system is running systemd, we need to ensure that all
> # necessary tmpfiles (if any) are created before starting.
> if [ -d /run/systemd/system ] ; then
>                 print "#TMPFILES#"
> systemd-tmpfiles --create #TMPFILES# >/dev/null || true
> fi
> fi
> ###################
> 
> and built systemd with this deb helper
> 
> When installing systemd after build, i got below string ( installed 00rsyslog.conf in /usr/lib/tmpfiles.d/ and copied to /etc/tmpfiles.d/ )
> 
> ###
> Error: no such file "debian.conf home.conf journal-nocow.conf legacy.conf systemd-nologin.conf systemd.conf tmp.conf var.conf x11.conf"
> 
> ###
> 

Can you show me the full postinst generated with your patched version?
AFAICT, neither dh_installinit nor dh_installsystem should pass those
file names as a single argument.  When I tested locally, the shell
snippet seemed to correctly pass each file as separate arguments.

> I wanted to see TMPFILES list and there is no 00rsyslog.conf so.. 00rsyslog.conf can't override var.conf
> 

The override support that the patch adds is that
/etc/tmpfiles.d/foo.conf can now override /usr/lib/tmpfiles.d/foo.conf
(previously, it could not).

There was nothing to support "foo.conf" overriding "bar.conf" (or
"00rsyslog.conf" overriding "var.conf").

> maybe this need to be analyzed more?
> 
> Thanks
> 
> 
> [...]

For your concrete issue, you will have to use one of Michael's
recommendations listed in:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894510#37, OR

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894510#42

Sorry, but that is the best I can offer you without diverting for the
recommendations from the systemd maintainers.

~Niels




More information about the Pkg-systemd-maintainers mailing list