about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-08-15 07:43:14 +0200
committerJuan RP <xtraeme@gmail.com>2014-08-15 07:43:14 +0200
commit9022506f35fbf31c1d5940d49be3576ca07f780a (patch)
tree5933a686b6f87132fcb35cabca4966bb0ecd0690 /Makefile
parenta507f6309c61c60b2d73c0e93f83e4c7bad15315 (diff)
downloadrunit-void-9022506f35fbf31c1d5940d49be3576ca07f780a.tar.gz
runit-void-9022506f35fbf31c1d5940d49be3576ca07f780a.tar.xz
runit-void-9022506f35fbf31c1d5940d49be3576ca07f780a.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
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/