From 93c6db2a1d5071f150b693953078b9a05bdec82f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 7 May 2014 09:59:12 +0200 Subject: 2: use a symlink in /run/runit/runsvdir to the current runlevel instead. This makes 'ln -s /etc/sv/foo /var/service' work as it did before. --- 2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/2 b/2 index c793759..eb3e71e 100755 --- a/2 +++ b/2 @@ -13,11 +13,10 @@ done # Setup first tty as unicode again, stage1 does not work correctly for tty1. unicode_start -# Create runlevel and then copy services. +# Create runlevel and then make it the default. if [ -d /etc/runit/runsvdir/${runlevel} ]; then mkdir -p /run/runit/runsvdir - cp -aP /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir - ln -s /run/runit/runsvdir/${runlevel} /run/runit/runsvdir/current + ln -s /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir/current fi exec env - PATH=$PATH \ -- cgit 1.4.1