X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/9a7aa718329727e694b2d48fb0061dfd803ca846..49daa40014e07fd1a3edf8d6f2e9f3f69bbe0166:/vinst diff --git a/vinst b/vinst index bf0a14d..6b6ca5d 100755 --- a/vinst +++ b/vinst @@ -93,7 +93,7 @@ while [ -n "$1" ]; do (--wipe) WIPE=1 ;; - (--console) + (--restart) RESTART=1 ;; esac @@ -173,6 +173,7 @@ echo >&2 virsh --connect=$QEMU_URI vol-create-as $STORAGE_POOL virt-$HOSTNAME ${DISK}G if [ $WIPE = 1 ]; then + echo >&2 "Wiping disk…" virsh --connect=$QEMU_URI vol-wipe --pool $STORAGE_POOL --algorithm zero virt-$HOSTNAME fi @@ -200,6 +201,6 @@ virt-install --connect=$QEMU_URI \ virsh --connect=$QEMU_URI console $HOSTNAME -if [ $RESTART = 1]; then +if [ $RESTART = 1 ]; then virsh --connect=$QEMU_URI "start $HOSTNAME; console $HOSTNAME" fi