2 # Begin $rc_base/init.d/cleanfs - Clean file system
4 # Written by Gerard Beekmans - gerard@linuxfromscratch.org
6 source /etc
/sysconfig
/rc
9 echo "Removing /var/run/* and /var/lock/*"
10 rm -rf /var
/run
/* /var
/lock
/*
13 echo "Creating new /var/run/utmp..."
14 touch /var
/run
/utmp
&& chmod 644 /var
/run
/utmp
17 echo "Removing possible /etc/nologin /fastboot and /forcefsck..."
18 rm -f /etc
/nologin
/fastboot
/forcefsck
21 # End $rc_base/init.d/cleanfs