Author: bdubbs
Date: 2011-04-19 15:31:18 -0600 (Tue, 19 Apr 2011)
New Revision: 9511

Modified:
   trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/cleanfs
   trunk/BOOK/bootscripts/lfs/init.d/cleanfs
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter01/whatsnew.xml
   trunk/BOOK/general.ent
   trunk/BOOK/packages.ent
Log:
Update cleanfs bootscript to not clean /var/run or /var/lock because
they are now linked to a fresh tmpfs.


Modified: trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/cleanfs
===================================================================
--- trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/cleanfs        2011-04-19 
03:26:49 UTC (rev 9510)
+++ trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/cleanfs        2011-04-19 
21:31:18 UTC (rev 9511)
@@ -80,12 +80,6 @@
         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

Modified: trunk/BOOK/bootscripts/lfs/init.d/cleanfs
===================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/cleanfs   2011-04-19 03:26:49 UTC (rev 
9510)
+++ trunk/BOOK/bootscripts/lfs/init.d/cleanfs   2011-04-19 21:31:18 UTC (rev 
9511)
@@ -78,15 +78,8 @@
                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

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2011-04-19 03:26:49 UTC (rev 9510)
+++ trunk/BOOK/chapter01/changelog.xml  2011-04-19 21:31:18 UTC (rev 9511)
@@ -37,6 +37,17 @@
 
 -->
     <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>
         <listitem>

Modified: trunk/BOOK/chapter01/whatsnew.xml
===================================================================
--- trunk/BOOK/chapter01/whatsnew.xml   2011-04-19 03:26:49 UTC (rev 9510)
+++ trunk/BOOK/chapter01/whatsnew.xml   2011-04-19 21:31:18 UTC (rev 9511)
@@ -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

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent      2011-04-19 03:26:49 UTC (rev 9510)
+++ trunk/BOOK/general.ent      2011-04-19 21:31:18 UTC (rev 9511)
@@ -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}]" -->

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent     2011-04-19 03:26:49 UTC (rev 9510)
+++ trunk/BOOK/packages.ent     2011-04-19 21:31:18 UTC (rev 9511)
@@ -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 -->

-- 
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