lib.sh: cleanup_vms: Also remove VMs that use UEFI 13/38213/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 26 Jul 2017 17:06:31 +0000 (19:06 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 26 Jul 2017 17:06:31 +0000 (19:06 +0200)
commit346b0c0856ed53525e4d97cd06f3b8a9423d05f2
treef0366e756c63f0c56f7203f0d1fa2c971ba8bf7e
parent4651bb2a7257be49c9ca6ce5c959de66e6800005
lib.sh: cleanup_vms: Also remove VMs that use UEFI

Pass `--nvram` to `virsh undefine`, so guest VMs booted using
UEFI (OVMF on x86 or AAVMF on AArch64) can be destroyed.
This does not affect VMs without UEFI.

While at it, fix logical error in previous commit adding support
for cleaning up stopped VMs.

Change-Id: I44c20566469f29a8683d81e3641c69da572ccd4e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/scripts/lib.sh