Created attachment 1509776 [details] patch Description of problem: When installing cronie into a container image, it is preferable to use the systemd_ordering macro. According to https://fedoraproject.org/wiki/Packaging:Scriptlets: If a package is suitable for installation without systemd (in a container image, for example) and does not require any of the systemd mechanisms such as tmpfiles.d, then the systemd_ordering macro MAY be used instead of the systemd_requires macro. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
It would be also very nice to have this for Fedora28. Please let me know if I have to clone this bug for that release? (Not sure what to do to the patch then, I submitted it against master of https://src.fedoraproject.org/rpms/cronie repo, and I can see no stable branches there)
This has nothing to do with rpm.
Created attachment 1509789 [details] a better patch this version of the patch also covers SUSE and RHEL distros
@Panu, I'm sorry I was confused by the 'rpm' path used in the repo URL https://src.fedoraproject.org/rpms/cronie :)
What would be the point of installing cronie into a container where systemd is not present? This is a system service which cannot be started without systemd. Also we do not ship anything that is specific to other distros than Fedora and RHEL in Fedora package spec so the SUSE part is irrelevant.
@Tomas, in TripleO (OpenStack installer) we have containers that run crond and consume tasks from /var/spool/cron (puppet generates those via the tooling we have in tripleo to trigger puppet in config-containers https://review.openstack.org/#/c/478919/5/docker/docker-puppet.py), like in this example https://review.openstack.org/#/c/485865/2/docker/services/heat-api.yaml@94 So that should be working totally w/o having systemd in containers AFAICT.
Created attachment 1510097 [details] final patch
OK, then.
Thank you Tomas! What else shall I do to have it also accepted into fc28?
I wonder if it is really a safe change to do in already released Fedoras.
It would be very nice to have this for f28-stabilized as well.
JFYI the final patch was https://src.fedoraproject.org/rpms/cronie/c/4d665d4d53f8e2be58f3e64442714c1990cde05d?branch=master Thanks for helping!