sys-apps/sysvinit: symlink /run/initctl to /dev/initctl in pkg_postinst

Closes: https://bugs.gentoo.org/651990
Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81
This commit is contained in:
Mike Gilbert
2018-03-30 13:21:05 -04:00
parent ab035b1dbd
commit 81452bebdc
@@ -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