From 3a876074d2ab615187c2d1d8a874d221859983f3 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: May 16 2022 20:11:21 +0000 Subject: Run sysusers and friends also if systemd is not running I tested this with 'sudo dnf --installroot=…', with both systemd+system-udev installed in one transaction, and in two separate transactions. Users are created as expected in both cases. --- diff --git a/systemd.spec b/systemd.spec index ea7b755..76bd618 100644 --- a/systemd.spec +++ b/systemd.spec @@ -1022,6 +1022,8 @@ fi * Mon May 16 2022 Zbigniew Jędrzejewski-Szmek - 251~rc3-1 - Update to latest upstream prerelease (just various bugfixes) - Udev rule processing should be now fixed (#2076459) +- Run sysusers and hwdb and catalog updates also if systemd is not running + (#2085481) * Wed May 11 2022 Adam Williamson - 251~rc2-2 - Backport #23352 to fix RHBZ #2083374 diff --git a/triggers.systemd b/triggers.systemd index 5929035..719789b 100644 --- a/triggers.systemd +++ b/triggers.systemd @@ -55,23 +55,17 @@ fi # This script will process files installed in /usr/lib/sysusers.d to create # specified users automatically. The priority is set such that it # will run before the tmpfiles file trigger. -if test -d "/run/systemd/system"; then - systemd-sysusers || : -fi +systemd-sysusers || : %transfiletriggerin -P 1000700 udev -- /usr/lib/udev/hwdb.d # This script will automatically invoke hwdb update if files have been # installed or updated in /usr/lib/udev/hwdb.d. -if test -d "/run/systemd/system"; then - systemd-hwdb update || : -fi +systemd-hwdb update || : %transfiletriggerin -P 1000700 -- /usr/lib/systemd/catalog # This script will automatically invoke journal catalog update if files # have been installed or updated in /usr/lib/systemd/catalog. -if test -d "/run/systemd/system"; then - journalctl --update-catalog || : -fi +journalctl --update-catalog || : %transfiletriggerin -P 1000700 -- /usr/lib/binfmt.d # This script will automatically apply binfmt rules if files have been