Author: bdubbs
Date: 2011-04-19 21:06:03 -0600 (Tue, 19 Apr 2011)
New Revision: 9512

Modified:
   trunk/BOOK/bootscripts/lfs/init.d/mountfs
   trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs
   trunk/BOOK/bootscripts/lfs/init.d/udev
Log:
Tweaks to bootscripts

Modified: trunk/BOOK/bootscripts/lfs/init.d/mountfs
===================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/mountfs   2011-04-19 21:31:18 UTC (rev 
9511)
+++ trunk/BOOK/bootscripts/lfs/init.d/mountfs   2011-04-20 03:06:03 UTC (rev 
9512)
@@ -26,6 +26,7 @@
 
                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 @@
                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)

Modified: trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs
===================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs       2011-04-19 21:31:18 UTC 
(rev 9511)
+++ trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs       2011-04-20 03:06:03 UTC 
(rev 9512)
@@ -32,8 +32,7 @@
                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}

Modified: trunk/BOOK/bootscripts/lfs/init.d/udev
===================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/udev      2011-04-19 21:31:18 UTC (rev 
9511)
+++ trunk/BOOK/bootscripts/lfs/init.d/udev      2011-04-20 03:06:03 UTC (rev 
9512)
@@ -49,6 +49,8 @@
                        /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

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to