summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-11-16 08:30:28 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-29 11:56:42 +0100
commitf7b8a6f0fda9133b1c9f0c8a6ee95188670a819b (patch)
tree470f56fb9491a3a082531253f130b1f20a38bce4
parent5d8fc3c55ee1e766d3955882cbb10e795b541e5a (diff)
downloadmkinitcpio-f7b8a6f0fda9133b1c9f0c8a6ee95188670a819b.tar.gz
mkinitcpio-f7b8a6f0fda9133b1c9f0c8a6ee95188670a819b.tar.xz
busybox: create symlinks manually
This means that no "setup" of the initramfs is requried on boot, and this should make testing a lot eaiser by just chrooting into the ramfs to check if it works. Signed-off-by: Tom Gundersen <teg@jklm.no>
-rw-r--r--init2
-rw-r--r--install/base5
2 files changed, 5 insertions, 2 deletions
diff --git a/init b/init
index 7ddd60f..f769708 100644
--- a/init
+++ b/init
@@ -1,8 +1,6 @@
#!/usr/bin/ash
PATH=/usr/bin
-/bin/busybox --install -s
-
. /init_functions
mount -t proc proc /proc -o nosuid,noexec,nodev
diff --git a/install/base b/install/base
index 8232160..3366c38 100644
--- a/install/base
+++ b/install/base
@@ -10,6 +10,11 @@ build() {
add_symlink /usr/sbin bin
add_binary /lib/initcpio/busybox /bin/busybox
+
+ for applet in $(/lib/initcpio/busybox --list); do
+ add_symlink "/usr/bin/$applet" busybox
+ done
+
add_binary /sbin/modprobe
add_binary /sbin/blkid
add_binary /bin/mount