sys-apps/sysvinit: symlink /run/initctl to /dev/initctl in pkg_postinst
authorMike Gilbert <floppym@gentoo.org>
Fri, 30 Mar 2018 17:20:55 +0000 (13:20 -0400)
committerMike Gilbert <floppym@gentoo.org>
Fri, 30 Mar 2018 17:21:05 +0000 (13:21 -0400)
Closes: https://bugs.gentoo.org/651990
Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81

sys-apps/sysvinit/sysvinit-2.89-r1.ebuild [moved from sys-apps/sysvinit/sysvinit-2.89.ebuild with 97% similarity]

similarity index 97%
rename from sys-apps/sysvinit/sysvinit-2.89.ebuild
rename to sys-apps/sysvinit/sysvinit-2.89-r1.ebuild
index 8b137cdc498e34f2b4c251d4da17701a47a799a7..8e44ac619eda51d14ce308740ce13a97cd23fcd6 100644 (file)
@@ -105,6 +105,9 @@ pkg_postinst() {
        # This is really needed, as without the new version of init cause init
        # not to quit properly on reboot, and causes a fsck of / on next reboot.
        if [[ ${ROOT} == / ]] ; then
+               if [[ -e /dev/initctl && ! -e /run/initctl ]]; then
+                       ln -s /dev/initctl /run/initctl
+               fi
                # Do not return an error if this fails
                /sbin/telinit U &>/dev/null
        fi