summaryrefslogtreecommitdiffstats
path: root/mcp/scripts/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mcp/scripts/lib.sh')
-rw-r--r--mcp/scripts/lib.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 6fa330ab7..3ec596a48 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -16,9 +16,11 @@ get_base_image() {
cleanup_vms() {
# clean up existing nodes
- for node in $(virsh list --name --all | grep -P '\w{3}\d{2}'); do
+ for node in $(virsh list --name | grep -P '\w{3}\d{2}'); do
virsh destroy $node
- virsh undefine $node
+ done
+ for node in $(virsh list --name --all | grep -P '\w{3}\d{2}'); do
+ virsh undefine --nvram $node
done
}