Re-exec systemd on upgrades
This commit is contained in:
parent
0c7c3bcb8d
commit
1c62f46f16
18
glibc.spec
18
glibc.spec
@ -111,7 +111,7 @@
|
|||||||
Summary: The GNU libc libraries
|
Summary: The GNU libc libraries
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: %{glibcversion}
|
Version: %{glibcversion}
|
||||||
Release: 40%{?dist}
|
Release: 41%{?dist}
|
||||||
|
|
||||||
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
|
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
|
||||||
# libraries.
|
# libraries.
|
||||||
@ -2068,6 +2068,19 @@ else
|
|||||||
io.stdout:write ("Error: Missing " .. iconv_cache .. " file.\n")
|
io.stdout:write ("Error: Missing " .. iconv_cache .. " file.\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- (5) On upgrades, restart systemd if installed. "systemctl -q" does
|
||||||
|
-- not suppress the error message (which is common in chroots), so
|
||||||
|
-- open-code post_exec with standard error suppressed.
|
||||||
|
if arg[2] == "2" and posix.access("%{_prefix}/bin/systemctl", "x") then
|
||||||
|
local pid = posix.fork()
|
||||||
|
if pid == 0 then
|
||||||
|
posix.redirect2null(2)
|
||||||
|
assert(posix.exec("%{_prefix}/bin/systemctl", "daemon-reexec"))
|
||||||
|
elseif pid > 0 then
|
||||||
|
posix.wait(pid)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
%posttrans all-langpacks -e -p <lua>
|
%posttrans all-langpacks -e -p <lua>
|
||||||
-- The old glibc-all-langpacks postun scriptlet deleted the locale-archive
|
-- The old glibc-all-langpacks postun scriptlet deleted the locale-archive
|
||||||
-- file, so we may have to resurrect it on upgrades.
|
-- file, so we may have to resurrect it on upgrades.
|
||||||
@ -2207,6 +2220,9 @@ fi
|
|||||||
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 13 2021 Florian Weimer <fweimer@redhat.com> - 2.33.9000-41
|
||||||
|
- Re-exec systemd on upgrades
|
||||||
|
|
||||||
* Mon Jul 12 2021 Florian Weimer <fweimer@redhat.com> - 2.33.9000-40
|
* Mon Jul 12 2021 Florian Weimer <fweimer@redhat.com> - 2.33.9000-40
|
||||||
- Merge files NSS service module into libc.
|
- Merge files NSS service module into libc.
|
||||||
- Restore vDSO acceleration for time functions on older kernels for i686.
|
- Restore vDSO acceleration for time functions on older kernels for i686.
|
||||||
|
Loading…
Reference in New Issue
Block a user