diff options
author | Mike Gilbert <floppym@gentoo.org> | 2018-12-27 01:35:41 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-12-27 01:35:41 -0500 |
commit | ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6 (patch) | |
tree | 44d716795648694de827d9d990f7361bde9d0911 /sys-apps | |
parent | dev-ruby/backports-3.8.0: added ~ppc64, bug 634924 (diff) | |
download | gentoo-ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6.tar.gz gentoo-ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6.tar.bz2 gentoo-ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6.zip |
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>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/systemd/systemd-240.ebuild | 6 | ||||
-rw-r--r-- | sys-apps/systemd/systemd-9999.ebuild | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys-apps/systemd/systemd-240.ebuild b/sys-apps/systemd/systemd-240.ebuild index 000f34f01187..84248ba4f3a3 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 000f34f01187..84248ba4f3a3 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" |