aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/lfs/init.d/mountfs6
-rw-r--r--bootscripts/lfs/init.d/mountvirtfs3
-rw-r--r--bootscripts/lfs/init.d/udev2
3 files changed, 4 insertions, 7 deletions
diff --git a/bootscripts/lfs/init.d/mountfs b/bootscripts/lfs/init.d/mountfs
index 09d6f913c..f7053ac10 100644
--- a/bootscripts/lfs/init.d/mountfs
+++ b/bootscripts/lfs/init.d/mountfs
@@ -26,6 +26,7 @@ case "${1}" in
boot_mesg "Recording existing mounts in /etc/mtab..."
> /etc/mtab
+
mount -f / || failed=1
mount -f /proc || failed=1
mount -f /sys || failed=1
@@ -38,11 +39,6 @@ case "${1}" in
boot_mesg "Mounting remaining file systems..."
mount -a -O no_netdev >/dev/null
evaluate_retval
-
- #Create a symlink for shared memory after /dev is mounted
- boot_mesg "Redirect /dev/shm to /run/shm..."
- ln -s /run/shm /dev/shm
- evaluate_retval
;;
stop)
diff --git a/bootscripts/lfs/init.d/mountvirtfs b/bootscripts/lfs/init.d/mountvirtfs
index 370f4e4b0..efc7c2128 100644
--- a/bootscripts/lfs/init.d/mountvirtfs
+++ b/bootscripts/lfs/init.d/mountvirtfs
@@ -32,8 +32,7 @@ case "${1}" in
if ! mountpoint /run >/dev/null; then
boot_mesg -n " /run" ${NORMAL}
mount -n /run || failed=1
- mkdir /run/var
- mkdir /run/shm
+ mkdir /run/{var,lock,shm}
fi
boot_mesg "" ${NORMAL}
diff --git a/bootscripts/lfs/init.d/udev b/bootscripts/lfs/init.d/udev
index 570d0e699..a1834891d 100644
--- a/bootscripts/lfs/init.d/udev
+++ b/bootscripts/lfs/init.d/udev
@@ -49,6 +49,8 @@ case "${1}" in
/etc/rc.d/init.d/halt stop
fi
+ ln -s /run/shm /dev/shm
+
# Udev handles uevents itself, so we don't need to have
# the kernel call out to any binary in response to them
echo > /proc/sys/kernel/hotplug