commit: ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu Dec 27 06:35:41 2018 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Dec 27 06:35:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed1c7de2
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 <AT> gentoo.org> sys-apps/systemd/systemd-240.ebuild | 6 ++++++ sys-apps/systemd/systemd-9999.ebuild | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/sys-apps/systemd/systemd-240.ebuild b/sys-apps/systemd/systemd-240.ebuild index 000f34f0118..84248ba4f3a 100644 --- a/sys-apps/systemd/systemd-240.ebuild +++ b/sys-apps/systemd/systemd-240.ebuild @@ -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" diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild index 000f34f0118..84248ba4f3a 100644 --- a/sys-apps/systemd/systemd-9999.ebuild +++ b/sys-apps/systemd/systemd-9999.ebuild @@ -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"
