From caf8b66943cf1cc39bc46020d05dd2a747e491ca Mon Sep 17 00:00:00 2001 From: Stephen Bates Date: Tue, 14 Nov 2023 13:39:37 -0700 Subject: [PATCH] qemu/gen-vm: Fix a small bug in path to images folder There was a spot where I had forgotten to change a hard-coded reference to the images folder to a variable-based one. So let's fix that while we are here. --- qemu/gen-vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/gen-vm b/qemu/gen-vm index 6631a83..277ef04 100755 --- a/qemu/gen-vm +++ b/qemu/gen-vm @@ -62,7 +62,7 @@ if [ ! -f ${IMAGES}/${RELEASE}-server-cloudimg-${ARCH}.img ]; then wget -P ${IMAGES} https://cloud-images.ubuntu.com/${RELEASE}/current/${RELEASE}-server-cloudimg-${ARCH}.img fi cp ${IMAGES}/${RELEASE}-server-cloudimg-${ARCH}.img ${IMAGES}/${VM_NAME}-backing.qcow2 -qemu-img resize ~/images/${VM_NAME}-backing.qcow2 ${SIZE}G +qemu-img resize ${IMAGES}/${VM_NAME}-backing.qcow2 ${SIZE}G if [ ! -f $SSH_KEY_FILE ]; then echo "SSH_KEY_FILE ${SSH_KEY_FILE} does not exist!"