From 5302df2e0651ed8b3d9ea150082008c0a4c2fa0c Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Sat, 12 May 2012 18:19:18 +0200 Subject: mount run tmpfs --- src/initramfs/scripts/init | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/initramfs') 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 -- cgit v1.2.3-55-g7522