Remove nvram when undefining VM on aarch64
This commit is contained in:
parent
7f78502046
commit
f326760971
1 changed files with 5 additions and 1 deletions
|
|
@ -291,7 +291,11 @@ done
|
|||
# Clean up our mess.
|
||||
greenprint "🧼 Cleaning up"
|
||||
sudo virsh destroy ${IMAGE_KEY}
|
||||
sudo virsh undefine ${IMAGE_KEY}
|
||||
if [[ $ARCH == aarch64 ]]; then
|
||||
sudo virsh undefine ${IMAGE_KEY} --nvram
|
||||
else
|
||||
sudo virsh undefine ${IMAGE_KEY}
|
||||
fi
|
||||
sudo rm -f $LIBVIRT_IMAGE_PATH $CLOUD_INIT_PATH
|
||||
|
||||
# Use the return code of the smoke test to determine if we passed or failed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue