From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1063839-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 57849138334 for <garchives@archives.gentoo.org>; Thu, 27 Dec 2018 06:36:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C95CE09AD; Thu, 27 Dec 2018 06:36:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED719E09AD for <gentoo-commits@lists.gentoo.org>; Thu, 27 Dec 2018 06:36:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F0C64335C31 for <gentoo-commits@lists.gentoo.org>; Thu, 27 Dec 2018 06:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3ADEE463 for <gentoo-commits@lists.gentoo.org>; Thu, 27 Dec 2018 06:36:04 +0000 (UTC) From: "Mike Gilbert" <floppym@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" <floppym@gentoo.org> Message-ID: <1545892541.ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/systemd-240.ebuild sys-apps/systemd/systemd-9999.ebuild X-VCS-Directories: sys-apps/systemd/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: ed1c7de237ae5d2aff784d9c7fcd4df7fb43a6d6 X-VCS-Branch: master Date: Thu, 27 Dec 2018 06:36:04 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bcaf0c8e-2499-479c-bdbd-3e49885595a5 X-Archives-Hash: 285b7c7cf1137e531de56297cf673581 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"