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.
(cherry picked from commit 3a876074d2
)
This commit is contained in:
parent
34346c3662
commit
322bdbdf07
|
@ -1005,6 +1005,8 @@ fi
|
|||
%changelog
|
||||
* Fri May 20 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 250.5-1
|
||||
- Latest upstream bugfix release (one was skipped because we were in freeze)
|
||||
- Run sysusers and hwdb and catalog updates also if systemd is not running
|
||||
(#2085481)
|
||||
|
||||
* Fri Mar 18 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 250.3-8
|
||||
- Fix the wrong file assignment done in previous version
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue