mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Tweaks to bootscripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9512 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
d61a33f867
commit
29450ec185
@ -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)
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user