From d0d1447e2b78f64fb994141e4418d5c9d68f7b00 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Wed, 9 Nov 2011 17:14:09 +0100 Subject: [PATCH] cleanup fixes --- Makefile | 3 ++- cleanup_image | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 387ed80..36c37e7 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,8 @@ update-repo-installer: clean: sudo rm -fr qubeized_images/root.img.* sudo rm -fr qubeized_images/$(TEMPLATE_NAME)* - sudo rm -fr rpmbuild/* + sudo rm -fr rpmbuild/BUILDROOT/* + sudo rm -fr rpmbuild/tmp/* # We're not removing any images from fedorized_images/ intentionally # because the user might want to keep using the same image for a long time # and they are not dependent on any of the Qubes packahes diff --git a/cleanup_image b/cleanup_image index b40f0b6..dbc35f3 100755 --- a/cleanup_image +++ b/cleanup_image @@ -15,7 +15,7 @@ fi ls -als $IMG mount -o loop $IMG mnt || exit 1 INSTALLDIR=`pwd`/mnt/ -yum clean packages --installroot=$INSTALLDIR +yum -c $PWD/yum.conf clean packages --installroot=$INSTALLDIR dd if=/dev/zero of=mnt/fillme bs=1M sync rm mnt/fillme