Browse Source

Update cleanfs bootscript to not clean /var/run or /var/lock because
they are now linked to a fresh tmpfs.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9511 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Bruce Dubbs 14 năm trước cách đây
mục cha
commit
d61a33f867

+ 0 - 6
bootscripts/contrib/lsb-v3/init.d/cleanfs

@@ -80,12 +80,6 @@ case "${1}" in
         find /tmp -xdev -mindepth 1 ! -name lost+found \
             -delete || failed=1
 
-        message="${message} /var/lock"
-        find /var/lock -type f -exec rm -f {} \; || failed=1
-
-        message="${message} /var/run${NORMAL}"
-        find /var/run ! -type d ! -name utmp -exec rm -f {} \; || failed=1
-
         > /var/run/utmp
         if grep -q '^utmp:' /etc/group ; then
             chmod 664 /var/run/utmp

+ 1 - 8
bootscripts/lfs/init.d/cleanfs

@@ -78,15 +78,8 @@ case "${1}" in
 		find . -xdev -mindepth 1 ! -name lost+found \
 			-delete || failed=1
 
-		boot_mesg -n " /var/lock" ${NORMAL}
-		cd /var/lock &&
-		find . -type f -exec rm -f {} \; || failed=1
-
-		boot_mesg " /var/run" ${NORMAL}
-		cd /var/run &&
-		find . ! -type d ! -name utmp \
-			-exec rm -f {} \; || failed=1
 		> /var/run/utmp
+
 		if grep -q '^utmp:' /etc/group ; then
 			chmod 664 /var/run/utmp
 			chgrp utmp /var/run/utmp

+ 11 - 0
chapter01/changelog.xml

@@ -36,6 +36,17 @@
     </listitem>
 
 -->
+    <listitem>
+      <para>2011-04-19</para>
+      <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Update cleanfs bootscript to 
+          not clean /var/run or /var/lock because
+          they are now linked to a fresh tmpfs.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>2011-04-18</para>
       <itemizedlist>

+ 6 - 0
chapter01/whatsnew.xml

@@ -13,6 +13,12 @@
   <para>Below is a list of package updates made since the previous
   release of the book.</para>
 
+  <note><para>A somewhat major change was made in this version of the book by adding
+  a new top level directory, /run.  This directory has a tmpfs mounted and is
+  used by programs like udev to store run time information.  The directories
+  /var/run and /var/lock are also linked to this directory.   The bootscripts
+  have been updated to accomodate this change.</para></note>
+
   <!--
     Every package in the book is listed in the "Upgraded to:" section.
     Comment/uncomment as needed. DO NOT delete any of these lines unless that

+ 2 - 2
general.ent

@@ -1,5 +1,5 @@
-<!ENTITY version "SVN-20110418">
-<!ENTITY releasedate "April 18, 2011">
+<!ENTITY version "SVN-20110419">
+<!ENTITY releasedate "April 19, 2011">
 <!ENTITY copyrightdate "1999-2011"><!-- jhalfs needs a literal dash, not &ndash; -->
 <!ENTITY milestone "6.9">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->

+ 1 - 1
packages.ent

@@ -289,7 +289,7 @@
 <!ENTITY less-ch6-du "2.9 MB">
 <!ENTITY less-ch6-sbu "less than 0.1 SBU">
 
-<!ENTITY lfs-bootscripts-version "20110318">                 <!-- Scripts depend on this format -->
+<!ENTITY lfs-bootscripts-version "20110319">                 <!-- Scripts depend on this format -->
 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">         <!-- Updated in Makefile -->
 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
 <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">           <!-- Updated in Makefile -->