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 initrc.sh
runscript passwd.sh runscript passwd.sh
runscript clean.sh
unmount unmount
clean
kernel kernel
log stamp log stamp
log Tar_it log Tar+Hash
log stamp log stamp
tarit tarit
log stamp
log Hash_it
log stamp
hashit hashit
+log stamp +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