summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-22 16:27:12 +0200
committerDave Reisner <dreisner@archlinux.org>2011-10-22 16:27:12 +0200
commit2ad79d0f5b9b0af09f5cf4c61215e2ae7a25dbd5 (patch)
treeebe8ffaacafc70a874ba2b979b4baf63c96f68fa
parente3e9af2b4d2ec8193303470104fe9bb0d7507cf3 (diff)
downloadmkinitcpio-2ad79d0f5b9b0af09f5cf4c61215e2ae7a25dbd5.tar.gz
mkinitcpio-2ad79d0f5b9b0af09f5cf4c61215e2ae7a25dbd5.tar.xz
install/base: include new_root as part of build process
We always need this in early userspace, so add it as part of the build process instead of forking at runtime. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--init1
-rw-r--r--install/base2
2 files changed, 1 insertions, 2 deletions
diff --git a/init b/init
index c772590..c185375 100644
--- a/init
+++ b/init
@@ -6,7 +6,6 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
. /init_functions
-mkdir -p /new_root
mount -t proc proc /proc -o nosuid,noexec,nodev
mount -t sysfs sys /sys -o nosuid,noexec,nodev
if grep -q devtmpfs /proc/filesystems; then
diff --git a/install/base b/install/base
index 25b297f..1f2b3b8 100644
--- a/install/base
+++ b/install/base
@@ -1,7 +1,7 @@
#!/bin/bash
build() {
- for dir in proc sys dev run usr/{bin,sbin}; do
+ for dir in new_root proc sys dev run usr/{bin,sbin}; do
add_dir "/$dir"
done