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:
Mike Gilbert
2018-12-27 01:35:41 -05:00
parent b7c25b3217
commit ed1c7de237
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -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"
+6
View File
@@ -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"