diff options
author | Markos Chandras <mchandras@suse.de> | 2017-12-11 19:33:49 +0000 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-12-11 19:33:49 +0000 |
commit | b35cbb57db32903e8dc3387870e3f388adc9beac (patch) | |
tree | 7faac822547ba3ab2f133410c89c61d01d7618d9 /bifrost | |
parent | 175b1544882572c442702f4db8f0ead73df1413d (diff) |
bifrost: destroy-env.sh: Clean dib images by default
The destroy-env.sh script is meant to clean the entire environment
including the dib images that were built in a previous run. However,
this step was only executed if requested exclicitly leaving old
artifacts behind. As such, lets switch the default value in order to
remove these images as expected.
Change-Id: If3b91a621df50931ef3d666737cbc3bbea5d34b9
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'bifrost')
-rwxr-xr-x | bifrost/scripts/destroy-env.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bifrost/scripts/destroy-env.sh b/bifrost/scripts/destroy-env.sh index 45d2b72e..3ee66642 100755 --- a/bifrost/scripts/destroy-env.sh +++ b/bifrost/scripts/destroy-env.sh @@ -53,8 +53,8 @@ echo "removing leases" echo "removing logs" rm -rf /var/log/libvirt/baremetal_logs/* -# clean up dib images only if requested explicitly -CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-false} +# clean up dib images by default +CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-true} if [ $CLEAN_DIB_IMAGES = "true" ]; then rm -rf /httpboot /tftpboot |