commit: f8491bed3fd7928d6be0cd6660a5568b9ccfeb59
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 8 15:16:39 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 8 15:16:39 2015 +0000
URL: https://gitweb.gentoo.org/proj/grs.git/commit/?id=f8491bed
scripts/clean.sh: migrate cleaning to chroot script.
build | 9 ++-------
scripts/clean.sh | 5 +++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/build b/build
index 20ef826..77cd44f 100644
--- a/build
+++ b/build
@@ -27,20 +27,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
diff --git a/scripts/clean.sh b/scripts/clean.sh
new file mode 100644
index 0000000..0424c9d
--- /dev/null
+++ b/scripts/clean.sh
@@ -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