scripts/clean.sh: migrate cleaning to chroot script.

This commit is contained in:
Anthony G. Basile 2015-07-08 11:18:54 -04:00
parent 8193e3c12a
commit ace87bdaff
2 changed files with 7 additions and 7 deletions

9
build
View File

@ -20,20 +20,15 @@ log stamp
runscript initrc.sh
runscript passwd.sh
runscript clean.sh
unmount
clean
kernel
log stamp
log Tar_it
log Tar+Hash
log stamp
tarit
log stamp
log Hash_it
log stamp
hashit
+log stamp

5
scripts/clean.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash -e
for d in /tmp /var/tmp /var/log; do
find ${d} -mindepth 1 -exec rm -rf {} +
rm -rf /etc/resolv.con