1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

Add some warnings around virsh-cleanup

I actually had some other VMs; luckily in my case they're all
easy to recreate, but others may not be in the same situation.
This commit is contained in:
Colin Walters
2018-07-31 20:44:46 +00:00
parent c4c6fb2aa4
commit ffc01c6720
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
#!/bin/sh
printf 'Warning: This will destroy effectively all libvirt resources\nContinue [yN]? '
read CONTINUE
if test "${CONTINUE}" != y -a "${CONTINUE}" != Y
then
echo 'Aborted' >&2
exit 1
fi
CONNECT="${CONNECT:=qemu:///system}"
POOL="${POOL:=default}"