From 9796bcabd7925edb71cf5d3ba2914784b765fa81 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 7 Aug 2025 11:12:26 +0800 Subject: [PATCH] utmp group is required in file list, it must be created in pre section (cherry picked from commit 6e4228e913ca071d63670cc2160bd6208f8f8f05) --- systemd.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index 75a3d65..d8ca635 100644 --- a/systemd.spec +++ b/systemd.spec @@ -6,6 +6,8 @@ %global _docdir_fmt %{name} %global _systemddir /usr/lib/systemd +%global py_auto_byte_compile 0 + %ifarch aarch64 %global efi_arch aa64 %endif @@ -25,7 +27,7 @@ Name: systemd Url: https://systemd.io/ Version: 255 -Release: 49 +Release: 50 License: LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later Summary: System and Service Manager @@ -212,6 +214,8 @@ Requires(post): acl Requires(post): grep Requires(post): openssl-libs Requires(pre): coreutils +Requires(pre): /usr/bin/getent +Requires(pre): /usr/sbin/groupadd Requires(meta): (%{name}-rpm-macros = %{version}-%{release} if rpm-build) Recommends: diffutils Recommends: libxkbcommon%{?_isa} @@ -727,6 +731,9 @@ if test -d /run/systemd/system; then %{_systemddir}/systemd-binfmt || : fi +%pre +getent group utmp &>/dev/null || groupadd -r -g 22 utmp &>/dev/null || : + %post /sbin/ldconfig systemd-machine-id-setup &>/dev/null || : @@ -1720,6 +1727,9 @@ fi %{_unitdir}/veritysetup.target %changelog +* Fri Aug 08 2025 Funda Wang - 255-50 +- utmp group is required in file list, it must be created in pre section + * Fri Aug 08 2025 Linux_zhang - 255-49 - sync patches from systemd community -- Gitee