From ace87bdaff524bc5ddc79dd25bb237fbe82d67b2 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Wed, 8 Jul 2015 11:18:54 -0400 Subject: [PATCH] scripts/clean.sh: migrate cleaning to chroot script. --- build | 9 ++------- scripts/clean.sh | 5 +++++ 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 scripts/clean.sh 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