On Sat, 31 Mar 2018 08:58:21 -0700 Seyeong Kim <seyeong....@canonical.com> wrote: > Package: debhelper > Version: 9.20160115ubuntu3 > Severity: normal > Tags: d-i > > In autoscripts/postinst-init-tmpfiles, There is TMPFILE containing conf in > systemd pkg only. > Then if there is 00rsyslog.conf from rsyslog pkg. and installing or upgrading > systemd > > /var/log's permission is 755(which is default) not 775(which is in > 00rsyslog.conf) > overriding doesn't work when upgrading. > > Please refer to below LP > ubuntu lp bug : https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1748147 > > removing TMPFILE from autoscripts/postinst-init-tmpfiles solves this issue. > e.g. change like below > systemd-tmpfiles --create #TMPFILES# >/dev/null || true > to > systemd-tmpfiles --create >/dev/null || true
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. If I understand you correctly, your issue is the following: The systemd package ships /usr/lib/tmpfiles.d/var.conf containing d /var/log 0755 - - - The rsyslog package ships /usr/lib/tmpfiles.d/00rsyslog.conf containing z /var/log 0775 root syslog - So you have conflicting definitions for /var/log and you rely on the systemd-tmpfiles to always process all .conf files and you rely on the sort-order to ensure that the definition in var.conf is skipped? systemd.postinst has a call systemd-tmpfiles --create ... /usr/lib/tmpfiles.d/var.conf That means if the postinst of systemd is processed after rsyslog or only the systemd package is upgraded, your /var/log/ permissions are reset to the systemd defaults? TBH, that all sounds like a very brittle setup, to rely on the sort-ordering and systemd-tmpfiles always acting on all files. Overriding existing tmpfiles configs this way seems hacky, not sure if upstream intended it to be used like this. I note that this is an Ubuntu specific problem, the Debian rsyslog package does not ship such a config. Dunno what the best solution is for your specific case. Maybe diverting /usr/lib/tmpfiles.d/var.conf in the rsyslog package? You could also ask upstream, maybe they have an idea how to solve this in a more robust way. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature