SHA256
1
0
forked from pool/systemd
Commit Graph

6 Commits

Author SHA256 Message Date
Franck Bui
1dd6f15943 - file-triggers: fix a typo that sneaked in the script dealing with tmpfiles
(bsc#1212733)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1404
2023-06-26 14:28:56 +00:00
Franck Bui
d1bee00c93 - file-triggers: fix lua trigger priority for sysusers (bsc#1212376)
A single digit in the priority used for sysusers got dropped somehow and
  upstream commit cd621954ed643c6ee0d869132293e26056a48826 forgot to restore it
  in the lua implementation.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1398
2023-06-21 09:32:38 +00:00
Franck Bui
6bdc7a067a - 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
2023-06-20 15:55:18 +00:00
Franck Bui
3dede0e3d9 - Make sure to skip the call to systemd-tmpfile in the file-triggers when
running on transaction systems

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1395
2023-06-16 14:42:32 +00:00
Franck Bui
51ccc3bb3e - Reexecute user managers on package updates.
For now we send signal to user instances to trigger their reexecution. It's
  asynchronous but it shouldn't cause any problem in practice and it's probably
  safer than triggering reexecution with "systemctl --user -M 1000@
  daemon-reexec" command. The latter command creates a new PAM session behind
  the scene bringing with it the known issue (upstream issue #8598) with
  "(sd-pam)" helper process when the PAM session is being closed.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1393
2023-06-01 15:56:32 +00:00
Franck Bui
7491f913dd - Provide (Lua-based) file triggers and adapt systemd.spec accordingly (boo#1133764)
More specifically, file triggers handle automatically installations or updates
  of files for sysusers, tmpfiles, hwdb, journal catalog, udev rules, sysctl and
  binfmt.
  Therefore it makes a bunch of systemd rpm macros (such as %udev_hwdb_update,
  %udev_rules_update, %journal_catalog_update, %tmpfiles_create,
  %sysusers_create and so on) not needed anymore. However before considering
  simplifying your spec files beware that these changes are not available in SLE
  yet and will probably never reach the current releases (latest one being
  SLE15-SP5 as of this writing).
  Macros dealing with unit restart/enabling (such as %systemd_pre,
  %service_add_pre, %service_del_postun, ...) are still needed though. However
  reloading of systemd instances (and thus restarting of units) are delayed
  until the very end of the package install/update transaction and is now done
  only once. 
  Nevertheless to fully take advantage of file triggers, users have to activate
  a specific zypper transaction backend which is still considered as
  experimental, see bsc#1041742 for details.
- Provide a (slighlty) customized version of systemd-update-helper. Some of the
  systemd rpm macros rely now on the helper and delegate their work to it. Hence
  we don't need to rebuild all packages anymore when the content of the rpm
  macros must be updated/fixed.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1390
2023-05-09 14:01:32 +00:00