diff --git a/systemd.changes b/systemd.changes index 610c1964..23682c86 100644 --- a/systemd.changes +++ b/systemd.changes @@ -2,8 +2,12 @@ Wed Jun 21 10:30:58 UTC 2023 - Franck Bui - Make sure to pre-install the groups systemd and udev rely on. This is needed - when the tmpfiles are run at package installation time (i.e. when - file-triggers are disabled). + when the tmpfiles are run at package installation time. Theoretically with + only "Requires(pre): group()", rpm is allowed to drop the group at the end of + the package installations hence let's keep "Requires: group()" dep. + + Note: this is also needed when (post)file-triggers are enabled due to the + current limitation of the default libzypp transaction backend. ------------------------------------------------------------------- Wed Jun 21 09:28:29 UTC 2023 - Franck Bui diff --git a/systemd.spec b/systemd.spec index e5e52419..7aeb2d5f 100644 --- a/systemd.spec +++ b/systemd.spec @@ -137,15 +137,17 @@ Requires: netcfg >= 11.5 Requires: systemd-default-settings-branding Requires: systemd-presets-branding Requires: util-linux >= 2.27.1 +Requires: group(lock) +# The next dependency is also needed with file-triggers enabled due to the way +# the libzypp default transaction backend works. Requires(pre): group(lock) -# This Recommends because some symbols of libpcre2 are dlopen()ed by journalctl -Recommends: libpcre2-8-0 -Recommends: libbpf0 - Requires(post): coreutils Requires(post): findutils Requires(post): systemd-presets-branding Requires(post): pam-config >= 0.79-5 +# This Recommends because some symbols of libpcre2 are dlopen()ed by journalctl +Recommends: libpcre2-8-0 +Recommends: libbpf0 %endif Conflicts: filesystem < 11.5 Conflicts: mkinitrd < 2.7.0 @@ -323,6 +325,9 @@ Requires: %{name} = %{version}-%{release} Requires: filesystem Requires: kmod Requires: system-group-hardware +Requires: group(kvm) +# The next dependency is also needed with file-triggers enabled due to the way +# the libzypp default transaction backend works. Requires(pre): group(kvm) Requires(post): sed Requires(post): coreutils