aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2011-04-19 21:31:18 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2011-04-19 21:31:18 +0000
commitd61a33f8678a5da9ea7e1b9c92fae9c8fb65fdcb (patch)
tree633f1b135ef8fc85d2a9ac81736c8b219b4d0c52 /bootscripts
parent9f318ba306fa33ba0e626d6d3dc0bc24291ee2f0 (diff)
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
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/cleanfs6
-rw-r--r--bootscripts/lfs/init.d/cleanfs9
2 files changed, 1 insertions, 14 deletions
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