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.
This commit is contained in:
parent
4cd7098f04
commit
3a876074d2
@ -1022,6 +1022,8 @@ fi
|
|||||||
* Mon May 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 251~rc3-1
|
* Mon May 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 251~rc3-1
|
||||||
- Update to latest upstream prerelease (just various bugfixes)
|
- Update to latest upstream prerelease (just various bugfixes)
|
||||||
- Udev rule processing should be now fixed (#2076459)
|
- 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 <awilliam@redhat.com> - 251~rc2-2
|
* Wed May 11 2022 Adam Williamson <awilliam@redhat.com> - 251~rc2-2
|
||||||
- Backport #23352 to fix RHBZ #2083374
|
- Backport #23352 to fix RHBZ #2083374
|
||||||
|
@ -55,23 +55,17 @@ fi
|
|||||||
# This script will process files installed in /usr/lib/sysusers.d to create
|
# This script will process files installed in /usr/lib/sysusers.d to create
|
||||||
# specified users automatically. The priority is set such that it
|
# specified users automatically. The priority is set such that it
|
||||||
# will run before the tmpfiles file trigger.
|
# will run before the tmpfiles file trigger.
|
||||||
if test -d "/run/systemd/system"; then
|
|
||||||
systemd-sysusers || :
|
systemd-sysusers || :
|
||||||
fi
|
|
||||||
|
|
||||||
%transfiletriggerin -P 1000700 udev -- /usr/lib/udev/hwdb.d
|
%transfiletriggerin -P 1000700 udev -- /usr/lib/udev/hwdb.d
|
||||||
# This script will automatically invoke hwdb update if files have been
|
# This script will automatically invoke hwdb update if files have been
|
||||||
# installed or updated in /usr/lib/udev/hwdb.d.
|
# installed or updated in /usr/lib/udev/hwdb.d.
|
||||||
if test -d "/run/systemd/system"; then
|
|
||||||
systemd-hwdb update || :
|
systemd-hwdb update || :
|
||||||
fi
|
|
||||||
|
|
||||||
%transfiletriggerin -P 1000700 -- /usr/lib/systemd/catalog
|
%transfiletriggerin -P 1000700 -- /usr/lib/systemd/catalog
|
||||||
# This script will automatically invoke journal catalog update if files
|
# This script will automatically invoke journal catalog update if files
|
||||||
# have been installed or updated in /usr/lib/systemd/catalog.
|
# have been installed or updated in /usr/lib/systemd/catalog.
|
||||||
if test -d "/run/systemd/system"; then
|
|
||||||
journalctl --update-catalog || :
|
journalctl --update-catalog || :
|
||||||
fi
|
|
||||||
|
|
||||||
%transfiletriggerin -P 1000700 -- /usr/lib/binfmt.d
|
%transfiletriggerin -P 1000700 -- /usr/lib/binfmt.d
|
||||||
# This script will automatically apply binfmt rules if files have been
|
# This script will automatically apply binfmt rules if files have been
|
||||||
|
Loading…
Reference in New Issue
Block a user