From 01326af9d897efdd471e4ccc5862a41a02dd660e Mon Sep 17 00:00:00 2001 From: Lukas Greve Date: Thu, 22 May 2025 16:48:07 +0200 Subject: [PATCH] fix bug related to path the extra-args should refer to the file, irrespective of its location. --- scripts/deploy-distro.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/deploy-distro.sh b/scripts/deploy-distro.sh index 00bc0ed..c05443a 100755 --- a/scripts/deploy-distro.sh +++ b/scripts/deploy-distro.sh @@ -55,6 +55,7 @@ virt-install \ --rng /dev/urandom,model=virtio \ --disk path=/var/lib/libvirt/images/"$vm_name".img,format=raw,bus=virtio,cache=writeback,size=10 \ --location=https://download.fedoraproject.org/pub/fedora/linux/releases/42/Everything/x86_64/os/ \ - --initrd-inject "dishes/$vm_name".cfg --extra-args "inst.ks=file:dishes/$vm_name.cfg" + --initrd-inject "./dishes/$vm_name".cfg \ + --extra-args "inst.ks=file:$vm_name.cfg" echo "virt-install command executed with VM name: $vm_name" \ No newline at end of file