From 9022506f35fbf31c1d5940d49be3576ca07f780a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 15 Aug 2014 07:43:14 +0200 Subject: Make /etc/runit/{reboot,stopit} symlinks to /run/runit. The real files are created in stage 1, this way a read-only rootfs can be used to reboot/halt properly the system. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 71d5f81..c92061a 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,8 @@ install: install -m755 rc.local ${DESTDIR}/etc install -d ${DESTDIR}/${PREFIX}/lib/dracut/dracut.conf.d install -m644 dracut/*.conf ${DESTDIR}/${PREFIX}/lib/dracut/dracut.conf.d + ln -sf /run/runit/reboot ${DESTDIR}/etc/runit/ + ln -sf /run/runit/stopit ${DESTDIR}/etc/runit/ cp -aP runsvdir/* ${DESTDIR}/etc/runit/runsvdir/ cp -aP services/* ${DESTDIR}/etc/sv/ -- cgit 1.4.1