X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fcleanfs;h=153f24141d0a82477752802f35a2fcc4a19dd62a;hb=16f1a75d215e027ad746fc60dd10cd456f07f8d6;hp=4be2a548423b1897c9796e56b65cc97baaa5c6df;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/bootscripts/cleanfs b/stage1/bootscripts/cleanfs index 4be2a54..153f241 100755 --- a/stage1/bootscripts/cleanfs +++ b/stage1/bootscripts/cleanfs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # cleanfs # Clean file system @@ -20,6 +20,12 @@ clean_files() cd /var/run && find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1 + + if [ -d /home/named ]; then + cd /home/named/var/run && + find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1 + fi + > /var/run/utmp if grep -q '^utmp:' /etc/group ; then chmod 664 /var/run/utmp