[opensuse-packaging] Questioning systemd tmpfiles.d packaging guidelines
Hi, background: with Richards move of the rpm db to /usr, we are now looking at and cleaning up the content and subvolume mess in /var. And, if you take snapshots, rollback and transactional-updates serious, not everything in /var is accessible during upgrade. A solution for some of the problems is tmpfiles.d. So I converted two packages as PoC to use tmpfiles.d, and it works fine, except that rpmlint now reports a lot of policy violations. And I'm questioning, if this checks are really correct or what the idea behind this was. So my problems: 1. We call systemd-tmpfiles with the full path to the tmpfiles configuration. And this is documented in this way in our wiki, too. But: if I read the manual page correct, this is the wrong way. If you specify the full path to the config file as argument, adjusted configuration files in /etc done by the sysadmin are ignored. Why do we force every packager to ignore changes made by the admin here? 2. We tell the packager to add %ghost entries for every file, so that rpm -qf works. I can understand the reason, but in my experience, this %ghost entries always create problems later during update or deinstallation. Additional, rpm tries to mess around with this files during update/de-installation, but not always this files are accessible at this time. And if I can add the files to the package list, in most cases I don't need tmpfiles.d, but could add them directly to the file list. My dream: rpm -qf is looking at tmpfiles.d, if it does not find the file in the RPM database. Knowing that tmpfiles is creating this file and which configuration file is much, much more helpfull! I would like to see at least the full path to the configuration file changed to only the name of the configuration file. And maybe somebody has a better idea how to track tmpfiles.d config file changes except %ghost entries in RPM. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (1)
-
Thorsten Kukuk