cleanup fixes

This commit is contained in:
Joanna Rutkowska 2011-11-09 17:14:09 +01:00
parent ca602fab71
commit d0d1447e2b
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ update-repo-installer:
clean: clean:
sudo rm -fr qubeized_images/root.img.* sudo rm -fr qubeized_images/root.img.*
sudo rm -fr qubeized_images/$(TEMPLATE_NAME)* 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 # 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 # 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 # and they are not dependent on any of the Qubes packahes

View File

@ -15,7 +15,7 @@ fi
ls -als $IMG ls -als $IMG
mount -o loop $IMG mnt || exit 1 mount -o loop $IMG mnt || exit 1
INSTALLDIR=`pwd`/mnt/ 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 dd if=/dev/zero of=mnt/fillme bs=1M
sync sync
rm mnt/fillme rm mnt/fillme