- file-triggers: skip the call to systemd-tmpfiles in chroot too. That way we
ensure that packages that really need the tmpfiles in advance to use the right API which is %tmpfiles_create_package. - file-triggers: to be consistent with what we already does with tmpfiles, we skip the call to systemd-sysusers and delay system user creations until the next reboot. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1397
This commit is contained in:
parent
f450a5fd76
commit
6bdc7a067a
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 20 15:46:04 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
- file-triggers: skip the call to systemd-tmpfiles in chroot too. That way we
|
||||||
|
ensure that packages that really need the tmpfiles in advance to use the right
|
||||||
|
API which is %tmpfiles_create_package.
|
||||||
|
|
||||||
|
- file-triggers: to be consistent with what we already does with tmpfiles, we
|
||||||
|
skip the call to systemd-sysusers and delay system user creations until the
|
||||||
|
next reboot.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 20 07:05:34 UTC 2023 - Franck Bui <fbui@suse.com>
|
Tue Jun 20 07:05:34 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
@ -10,8 +21,12 @@ Tue Jun 20 07:05:34 UTC 2023 - Franck Bui <fbui@suse.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 16 14:38:33 UTC 2023 - Franck Bui <fbui@suse.com>
|
Fri Jun 16 14:38:33 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
- Make sure to skip the call to systemd-tmpfile in the file-triggers when
|
- file-triggers: make sure to skip the call to systemd-tmpfile in the
|
||||||
running on transaction systems
|
file-triggers when running on transaction systems (bsc#1212449)
|
||||||
|
|
||||||
|
systemd-tmpfiles usually modifies paths that are not supposed to change during
|
||||||
|
transactional updates (e.g. /var, /run). On transaction systems changes will
|
||||||
|
happen on the next reboot.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 1 15:58:24 UTC 2023 - Franck Bui <fbui@suse.com>
|
Thu Jun 1 15:58:24 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
@ -72,7 +72,10 @@ end
|
|||||||
-- 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.
|
||||||
|
-- Note: /run is never mounted during transactional updates.
|
||||||
|
if posix.access("/run/systemd/system") then
|
||||||
assert(rpm.execute("systemd-sysusers"))
|
assert(rpm.execute("systemd-sysusers"))
|
||||||
|
end
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
%transfiletriggerin -P 1000700 -n udev -p <lua> -- /usr/lib/udev/hwdb.d
|
%transfiletriggerin -P 1000700 -n udev -p <lua> -- /usr/lib/udev/hwdb.d
|
||||||
@ -102,7 +105,8 @@ end
|
|||||||
-- This script will process files installed in /usr/lib/tmpfiles.d to create
|
-- This script will process files installed in /usr/lib/tmpfiles.d to create
|
||||||
-- tmpfiles automatically. The priority is set such that it will run
|
-- tmpfiles automatically. The priority is set such that it will run
|
||||||
-- after the sysusers file trigger, but before any other triggers.
|
-- after the sysusers file trigger, but before any other triggers.
|
||||||
if os.getenv("TRANSACTIONAL_UPDATE") == nil then
|
-- Note: /run is never mounted during transactional updates.
|
||||||
|
if posix.access("/run/systemd/system") then
|
||||||
assert(rpm.execute("systemd-tmpfiles", "--create"))
|
assert(rpm.execute("systemd-tmpfiles", "--create"))
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user