diff --git a/bootscripts/contrib/lsb-v3/init.d/cleanfs b/bootscripts/contrib/lsb-v3/init.d/cleanfs index 61a1fb512..96582c28c 100644 --- a/bootscripts/contrib/lsb-v3/init.d/cleanfs +++ b/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 diff --git a/bootscripts/lfs/init.d/cleanfs b/bootscripts/lfs/init.d/cleanfs index c5a42970c..e88ea5bac 100644 --- a/bootscripts/lfs/init.d/cleanfs +++ b/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 diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 55d531e3d..8827d07da 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,6 +36,17 @@ --> + + 2011-04-19 + + + [bdubbs] - Update cleanfs bootscript to + not clean /var/run or /var/lock because + they are now linked to a fresh tmpfs. + + + + 2011-04-18 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index b4bcff048..425000e70 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -13,6 +13,12 @@ Below is a list of package updates made since the previous release of the book. + 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. + diff --git a/packages.ent b/packages.ent index e74a6c504..898098acf 100644 --- a/packages.ent +++ b/packages.ent @@ -289,7 +289,7 @@ - +