summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init7
1 files changed, 4 insertions, 3 deletions
diff --git a/init b/init
index f11908d..6bf4be7 100644
--- a/init
+++ b/init
@@ -3,6 +3,7 @@
mkdir /sys
mkdir /proc
mkdir /tmp
+mkdir -p /var/lock
mount -t sysfs sysfs /sys
mount -t proc proc /proc
mount -t ramfs none /dev
@@ -53,7 +54,7 @@ for x in $(cat /proc/cmdline); do
esac
done
-log_begin_msg "Running /script/init-top"
+log_begin_msg "Running /scripts/init-top"
run_scripts /scripts/init-top
log_end_msg
@@ -89,8 +90,8 @@ log_end_msg
# would.
mkdir -p /dev/.static/dev
chmod 700 /dev/.static/
-mount -o bind /root/dev /dev/.static/dev
-mount -o move /dev /root/dev
+mount -n -o bind ${rootmnt}/dev /dev/.static/dev
+mount -n -o move /dev ${rootmnt}/dev
umount /sys
umount /proc