Change sysusers u! lines to u because we don't have support in rpm

(cherry picked from commit 7bd1d09f7fd16d20a041de0eb9af7cc8dbef6a99)

Resolves: RHEL-129788
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-11-15 22:05:21 +01:00 committed by Jan Macku
parent cbf9da6b59
commit 8d35940867

View File

@ -1044,6 +1044,10 @@ useful to test systemd internals.
%prep
%autosetup -S git
# Disable user lockdown until rpm implements it natively.
# https://github.com/rpm-software-management/rpm/issues/3450
sed -r -i 's/^u!/u/' sysusers.d/*.conf*
%build
%global ntpvendor %(source /etc/os-release; echo ${ID})
%{!?ntpvendor: echo 'NTP vendor zone is not set!'; exit 1}