Remove raw root.img after packaging it into rpm - if DISCARD_PREPARED_IMAGE is set
This commit is contained in:
parent
75ca54bea6
commit
310019ea3c
@ -26,3 +26,7 @@ rpmbuild --target noarch \
|
|||||||
--define "_topdir $PWD/rpmbuild" \
|
--define "_topdir $PWD/rpmbuild" \
|
||||||
--define "_tmppath $PWD/rpmbuild/tmp" \
|
--define "_tmppath $PWD/rpmbuild/tmp" \
|
||||||
-bb templates.spec
|
-bb templates.spec
|
||||||
|
|
||||||
|
if [ "0$DISCARD_PREPARED_IMAGE" -eq "1" ]; then
|
||||||
|
rm -rf "qubeized_images/$NAME"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user