commit:     a75d4fc0b832d7df94303c51da2cecb0b0aeee3b
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 10 19:11:15 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Dec 10 19:12:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a75d4fc0

sys-apps/systemd: sync live

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-apps/systemd/systemd-9999.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys-apps/systemd/systemd-9999.ebuild 
b/sys-apps/systemd/systemd-9999.ebuild
index 412ecb66e468..a5c20a8b0bde 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -487,6 +487,12 @@ pkg_postinst() {
                rm "${EROOT}/var/lib/systemd/timesync"
        fi
 
+       if [[ -z ${ROOT} && -d /run/systemd/system ]]; then
+               ebegin "Reexecuting system manager (systemd)"
+               systemctl daemon-reexec
+               eend $? || FAIL=1
+       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"

Reply via email to