summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-24 16:26:56 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-24 16:26:56 (EST)
commitb24f857d4dbae41f3ccd2099496b4573ff9a38c5 (patch)
tree4a34ef3a64a2437f23bed0b88d47cfa2775dc9e0
parent06e5b7b37a8de9c1f41c5ca26ed729487e865985 (diff)
Add /init symbolic link
This is needed when packing ProteanOS in an initramfs.
-rwxr-xr-xbuild1
-rw-r--r--busybox.pkg/files1
2 files changed, 2 insertions, 0 deletions
diff --git a/build b/build
index 734a431..a41ce87 100755
--- a/build
+++ b/build
@@ -46,6 +46,7 @@ install: build
set -e; $(config_enabled); $(install_init_script); \
if config_enabled INIT; then \
exec 3>dest/usr/share/busybox/init-scripts; \
+ ln -sf /sbin/init dest/init; \
install -d -m 0755 dest/etc; \
install -p -m 0644 inittab dest/etc/inittab; \
install -d -m 0755 dest/etc/init.d dest/etc/rc.d; \
diff --git a/busybox.pkg/files b/busybox.pkg/files
index b9362d2..5fe59b4 100644
--- a/busybox.pkg/files
+++ b/busybox.pkg/files
@@ -1,5 +1,6 @@
/bin
/etc
+/init
/sbin
/usr
/var