Disable freezing of user sessions

... (rhbz#2321268)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-11-14 11:21:39 +01:00
commit 6162965002

View file

@ -1019,6 +1019,15 @@ mv %{buildroot}/usr/lib/tmpfiles.d/20-systemd-userdb.conf{,.example}
install -m 0644 -t %{buildroot}%{_prefix}/lib/pam.d/ %{SOURCE26} install -m 0644 -t %{buildroot}%{_prefix}/lib/pam.d/ %{SOURCE26}
# Disable freezing of user sessions while we're working out the details.
mkdir -p %{buildroot}/usr/lib/systemd/system/service.d/
cat >>%{buildroot}/usr/lib/systemd/system/service.d/50-keep-warm.conf <<EOF
# Disable freezing of user sessions to work around kernel bugs.
# See https://bugzilla.redhat.com/show_bug.cgi?id=2321268
[Service]
Environment=SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0
EOF
%find_lang %{name} %find_lang %{name}
# Split files in build root into rpms # Split files in build root into rpms