Browse Source

feat: support relative path when using existing image

pull/99/head
Giovanni Torres 6 months ago
parent
commit
1e707f1308
  1. 2
      kvm-install-vm

2
kvm-install-vm

@ -835,6 +835,8 @@ function create() {
check_ssh_key
if [ ! -z "${IMAGE+x}" ]; then
# Convert relative path to absolute path
IMAGE=$(realpath "${IMAGE}")
DISK_FORMAT=$(detect_disk_format "${IMAGE}")
output "Using custom image: ${IMAGE} (format: ${DISK_FORMAT})."
OS_INFO="linux2024"

Loading…
Cancel
Save