mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
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
This commit is contained in:
parent
9f318ba306
commit
d61a33f867
@ -80,12 +80,6 @@ case "${1}" in
|
|||||||
find /tmp -xdev -mindepth 1 ! -name lost+found \
|
find /tmp -xdev -mindepth 1 ! -name lost+found \
|
||||||
-delete || failed=1
|
-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
|
> /var/run/utmp
|
||||||
if grep -q '^utmp:' /etc/group ; then
|
if grep -q '^utmp:' /etc/group ; then
|
||||||
chmod 664 /var/run/utmp
|
chmod 664 /var/run/utmp
|
||||||
|
@ -78,15 +78,8 @@ case "${1}" in
|
|||||||
find . -xdev -mindepth 1 ! -name lost+found \
|
find . -xdev -mindepth 1 ! -name lost+found \
|
||||||
-delete || failed=1
|
-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
|
> /var/run/utmp
|
||||||
|
|
||||||
if grep -q '^utmp:' /etc/group ; then
|
if grep -q '^utmp:' /etc/group ; then
|
||||||
chmod 664 /var/run/utmp
|
chmod 664 /var/run/utmp
|
||||||
chgrp utmp /var/run/utmp
|
chgrp utmp /var/run/utmp
|
||||||
|
@ -36,6 +36,17 @@
|
|||||||
</listitem>
|
</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>
|
<listitem>
|
||||||
<para>2011-04-18</para>
|
<para>2011-04-18</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -13,6 +13,12 @@
|
|||||||
<para>Below is a list of package updates made since the previous
|
<para>Below is a list of package updates made since the previous
|
||||||
release of the book.</para>
|
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.
|
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
|
Comment/uncomment as needed. DO NOT delete any of these lines unless that
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!ENTITY version "SVN-20110418">
|
<!ENTITY version "SVN-20110419">
|
||||||
<!ENTITY releasedate "April 18, 2011">
|
<!ENTITY releasedate "April 19, 2011">
|
||||||
<!ENTITY copyrightdate "1999-2011"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2011"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "6.9">
|
<!ENTITY milestone "6.9">
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
@ -289,7 +289,7 @@
|
|||||||
<!ENTITY less-ch6-du "2.9 MB">
|
<!ENTITY less-ch6-du "2.9 MB">
|
||||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
<!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-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
||||||
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
||||||
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
||||||
|
Loading…
Reference in New Issue
Block a user