migrate-to-run: do not require a reboot

The script that migrates the @libexecdir@/rc/init.d directory to
/run/openrc should not require a reboot.

Reported-by: chainsaw@gentoo.org
This commit is contained in:
William Hubbs
2012-12-06 16:43:24 -06:00
parent a9272f50f7
commit e5173b9127
2 changed files with 19 additions and 30 deletions

View File

@ -51,6 +51,10 @@ if [ ! -d /run ]; then
fi
fi
if [ -L /run/openrc ]; then
rm /run/openrc
fi
if [ "$sys" = VSERVER ]; then
rm -rf /run/*
elif ! mountinfo -q /run; then
@ -84,5 +88,9 @@ if [ -e "$RC_LIBEXECDIR"/cache/deptree ]; then
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
fi
if [ -e "$RC_LIBEXECDIR"/init.d ]; then
rm -rf "$RC_LIBEXECDIR"/init.d
fi
echo sysinit >"$RC_SVCDIR"/softlevel
exit 0