sys-apps/systemd: drop reenable_unit
authorMike Gilbert <floppym@gentoo.org>
Sat, 30 Jul 2016 14:54:39 +0000 (10:54 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 30 Jul 2016 15:46:34 +0000 (11:46 -0400)
sys-apps/systemd/systemd-9999.ebuild

index a6151d15f732d132e34b34c8ce20c7140b34a3e0..32561569a749de5649d571d3cecf8d3d8882042c 100644 (file)
@@ -400,14 +400,6 @@ migrate_locale() {
        fi
 }
 
-reenable_unit() {
-       if systemctl is-enabled --root="${ROOT}" "$1" &> /dev/null; then
-               ebegin "Re-enabling $1"
-               systemctl reenable --root="${ROOT}" "$1"
-               eend $? || FAIL=1
-       fi
-}
-
 pkg_postinst() {
        newusergroup() {
                enewgroup "$1"
@@ -439,9 +431,6 @@ pkg_postinst() {
        # between OpenRC & systemd
        migrate_locale
 
-       # Re-enable systemd-networkd for socket activation
-       reenable_unit systemd-networkd.service
-
        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"