mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user