Remove more intermetiate files when DISCARD_PREPARED_IMAGE=1

This commit is contained in:
Marek Marczykowski-Górecki 2017-09-26 18:52:38 +02:00
parent fe05ad6935
commit fcc771715a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -33,6 +33,10 @@ cd qubeized_images/%{template_name}
rm -f root.img.part.*
tar --sparse --dereference -cf - root.img | split -d -b 1G - root.img.part.
if [ "0$DISCARD_PREPARED_IMAGE" -eq 1 ]; then
rm -f root.img
fi
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{dest_dir}