summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-01-05 23:56:23 +0100
committerThomas Bächler <thomas@archlinux.org>2010-01-05 23:56:23 +0100
commit9f85179b7fd706ddc9b5386dfae3514f16ca26f9 (patch)
tree5c22d461eed8831fbb34733b9a8a0d07e21abf94 /init
parent7fd17e6df5e82433759b27811707b6dc0b940835 (diff)
downloadmkinitcpio-9f85179b7fd706ddc9b5386dfae3514f16ca26f9.tar.gz
mkinitcpio-9f85179b7fd706ddc9b5386dfae3514f16ca26f9.tar.xz
Start moving from klibc to glibc+busybox
Remove klibc-isms from base and init (except kinit, which will be done in a later commit) Install busybox to the initramfs and change /init so it can be used with busybox
Diffstat (limited to 'init')
-rw-r--r--init10
1 files changed, 5 insertions, 5 deletions
diff --git a/init b/init
index 8885b39..e77a0dc 100644
--- a/init
+++ b/init
@@ -1,11 +1,13 @@
-#!/bin/sh
+#!/bin/busybox ash
+# Mount /proc so busybox can access /proc/self/exe
+/bin/busybox mount -t proc proc /proc
+# Install busybox's applets as symlinks
+/bin/busybox --install -s
. /init_functions
msg ":: Loading Initramfs"
-
/bin/mount -t sysfs none /sys
-/bin/mount -t proc none /proc
read CMDLINE </proc/cmdline
export CMDLINE
@@ -96,7 +98,6 @@ fi
if [ "${break}" = "y" ]; then
echo ":: Break requested, type 'exit' to resume operation"
- echo " NOTE: klibc contains no 'ls' binary, use 'echo *' instead"
PS1="ramfs$ " /bin/sh -i
fi
@@ -119,7 +120,6 @@ if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then
echo "You are being dropped to a recovery shell"
echo " Type 'reboot' to reboot"
echo " Type 'exit' to try and continue booting"
- echo "NOTE: klibc contains no 'ls' binary, use 'echo *' instead"
echo ""
echo "If the device '${root}' gets created while you are here,"
echo "try adding 'rootdelay=10' or higher to the kernel command-line"