commit:     ace87bdaff524bc5ddc79dd25bb237fbe82d67b2
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  8 15:18:54 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul  8 15:18:54 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grs.git/commit/?id=ace87bda

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 49d2f2e..1dca94e 100644
--- a/build
+++ b/build
@@ -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

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

Reply via email to