X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage1%2Fbootscripts%2Fcleanfs;h=48c2fdc1282d1ddb76dcc41af05a88e732cb6f0c;hb=0d0d7090b3b9f64c6ca0c6708b2f4c73f4551689;hp=4be2a548423b1897c9796e56b65cc97baaa5c6df;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/bootscripts/cleanfs b/stage1/bootscripts/cleanfs index 4be2a54..48c2fdc 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 /srv/named ]; then + cd /srv/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