mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
sys-apps/systemd: reexec in pkg_postinst
Closes: https://bugs.gentoo.org/673778 Package-Manager: Portage-2.3.52_p18, Repoman-2.3.12_p30 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
@@ -434,6 +434,12 @@ pkg_postinst() {
|
||||
|
||||
systemd_reenable systemd-networkd.service systemd-resolved.service
|
||||
|
||||
if [[ -z ${ROOT} && -d /run/systemd/system ]]; then
|
||||
ebegin "Reexecuting system manager"
|
||||
systemctl daemon-reexec || FAIL=1
|
||||
eend $?
|
||||
fi
|
||||
|
||||
if [[ ${FAIL} ]]; then
|
||||
eerror "One of the postinst commands failed. Please check the postinst output"
|
||||
eerror "for errors. You may need to clean up your system and/or try installing"
|
||||
|
||||
@@ -434,6 +434,12 @@ pkg_postinst() {
|
||||
|
||||
systemd_reenable systemd-networkd.service systemd-resolved.service
|
||||
|
||||
if [[ -z ${ROOT} && -d /run/systemd/system ]]; then
|
||||
ebegin "Reexecuting system manager"
|
||||
systemctl daemon-reexec || FAIL=1
|
||||
eend $?
|
||||
fi
|
||||
|
||||
if [[ ${FAIL} ]]; then
|
||||
eerror "One of the postinst commands failed. Please check the postinst output"
|
||||
eerror "for errors. You may need to clean up your system and/or try installing"
|
||||
|
||||
Reference in New Issue
Block a user