issue with systemd-tmpfiles not executing all actions when called from pacman hook
This is a repost from the forum as suggested by a contributor there.
This is actually related to the package 'nullmailer' and I tried to address this topic upstream, with little/no success. I was told that there is NO support for "any other distribution" ... so I'm asking here:
The Problem
After pacman -S nullmailer
neither /usr/bin/mailq
nor /usr/bin/nullmailer-queue
work correctly. Both programs should be setuid 'nullmailer', but aren't. Access to spool only works with correct permissions
The root Cause
The systemd-tmpfiles snippet seems not to work correctly:
Only most of the actions in the systemd-tmpfiles snippet are executed. The directories get created (with the right permissions) and the etc files also. Only the 'z' actions on the two binaries are missing. But when mimicking the pacman hook execution from the command line, all is set fine afterwards (echo /usr/lib/tmpfiles.d/nullmailer.conf | /usr/share/libalpm/scripts/systemd-hook tmpfiles
).
Manually executing systemd-tmpfiles --remove --create
also fixes the issue.
The Question So I'm looking for a way on how to debug this behavior further, it seems weird that some actions are correctly executed while others aren't.