commit:     ee86e592e78de9985c2e0d426ca3352927ddc04c
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  4 20:47:09 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Apr  4 20:47:40 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee86e592

sys-apps/systemd: remove /var/lib/systemd/timesync symlink

Closes: https://bugs.gentoo.org/682488
Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/systemd/systemd-242_rc3.ebuild | 4 ++++
 sys-apps/systemd/systemd-9999.ebuild    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sys-apps/systemd/systemd-242_rc3.ebuild 
b/sys-apps/systemd/systemd-242_rc3.ebuild
index bbb07c49e43..c167a2fd0b7 100644
--- a/sys-apps/systemd/systemd-242_rc3.ebuild
+++ b/sys-apps/systemd/systemd-242_rc3.ebuild
@@ -445,6 +445,10 @@ pkg_postinst() {
                systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}"
        fi
 
+       if [[ -L ${EROOT}/var/lib/systemd/timesync ]]; then
+               rm "${EROOT}/var/lib/systemd/timesync"
+       fi
+
        if [[ -z ${ROOT} && -d /run/systemd/system ]]; then
                ebegin "Reexecuting system manager"
                systemctl daemon-reexec

diff --git a/sys-apps/systemd/systemd-9999.ebuild 
b/sys-apps/systemd/systemd-9999.ebuild
index bbb07c49e43..c167a2fd0b7 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -445,6 +445,10 @@ pkg_postinst() {
                systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}"
        fi
 
+       if [[ -L ${EROOT}/var/lib/systemd/timesync ]]; then
+               rm "${EROOT}/var/lib/systemd/timesync"
+       fi
+
        if [[ -z ${ROOT} && -d /run/systemd/system ]]; then
                ebegin "Reexecuting system manager"
                systemctl daemon-reexec

Reply via email to