summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Schmelzer2012-05-12 18:19:18 +0200
committerSebastian Schmelzer2012-05-12 18:19:18 +0200
commit5302df2e0651ed8b3d9ea150082008c0a4c2fa0c (patch)
tree2b006751f210a735efa29b4c7d67c2637ac1f673
parentget vid, rid from rootfs uri (diff)
downloadcore-5302df2e0651ed8b3d9ea150082008c0a4c2fa0c.tar.gz
core-5302df2e0651ed8b3d9ea150082008c0a4c2fa0c.tar.xz
core-5302df2e0651ed8b3d9ea150082008c0a4c2fa0c.zip
mount run tmpfs
-rwxr-xr-xsrc/initramfs/scripts/init5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init
index 0d65b70e..7e4ff15a 100755
--- a/src/initramfs/scripts/init
+++ b/src/initramfs/scripts/init
@@ -22,6 +22,9 @@ export PATH=/bin:/sbin:/usr/bin/:/usr/sbin
devdir="/dev"
mount -n -t tmpfs -o 'size=25%,mode=0755' initramfsdevs ${devdir}
+mkdir -p /run
+mount -m -t tmpfs -o 'mode=755' run "/run"
+
# mount the important standard directories
[ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc
[ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys
@@ -1096,6 +1099,8 @@ killall klogd 2>/dev/null
# move /dev and unmount /proc and unset all old, unneeded environment
# variables
mount -n --move /dev /mnt/dev
+mkdir -p /mnt/run
+mount -n --move /run /mnt/run
umount -n /proc
unset client debug date initrd ip bldroot macaddr nwif nfsroot rootfs ticks \
vci vga