- 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:
2023-06-20 15:55:18 +00:00
committed by Git OBS Bridge
parent f450a5fd76
commit 6bdc7a067a
2 changed files with 23 additions and 4 deletions

View File

@@ -72,7 +72,10 @@ end
-- 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.
assert(rpm.execute("systemd-sysusers"))
-- Note: /run is never mounted during transactional updates.
if posix.access("/run/systemd/system") then
assert(rpm.execute("systemd-sysusers"))
end
%if %{without bootstrap}
%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
-- tmpfiles automatically. The priority is set such that it will run
-- 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"))
endf