Description of problem: Users and groups should be created with the %sysusers_create_compat macro. [1] However, the generated output doesn't seem to handle errors from the useradd command (e.g. with "|| :"). All scriptlets are required to exit with zero code [2]. The UserAndGroups document still has a paragraph referring to the original approach without the macro recommending exit 0 in %pre. [1] https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/ [2] https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/ Version-Release number of selected component (if applicable): systemd-rpm-macros-250.3-8.fc36.noarch
Indeed. I wonder how this never came up before.
FEDORA-2022-3ca356cd2e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3ca356cd2e
FEDORA-2022-3ca356cd2e has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-3ca356cd2e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-3ca356cd2e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-3ca356cd2e has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.