Skip to content

Commit 2e3f175

Browse files
committed
build_library: Use original qemu image name in qemu script
The move to symlinking to the qemu-uefi image also resulted in the qemu-uefi image being referenced in the qemu-bios and qemu-uefi-secure scripts instead of referencing the image symlinks. Same for the VM name shown in the qemu window title. When generating the qemu scripts, use the original qemu image name and VM name.
1 parent 9c91741 commit 2e3f175

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build_library/vm_image_util.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,14 @@ _write_qemu_uefi_conf() {
812812
# We now only support building qemu_uefi and generate the
813813
# other artifacts from here
814814
if [ "${VM_IMG_TYPE}" = qemu_uefi ]; then
815+
local qemu="${VM_DST_IMG/qemu_uefi/qemu}"
816+
local qemu_uefi_secure="${VM_DST_IMG/qemu_uefi/qemu_uefi_secure}"
817+
local qemu_name="${VM_NAME/qemu_uefi/qemu}"
818+
local qemu_uefi_secure_name="${VM_NAME/qemu_uefi/qemu_uefi_secure}"
815819
if [ "${BOARD}" = amd64-usr ]; then
816-
VM_IMG_TYPE=qemu _write_qemu_conf
820+
VM_IMG_TYPE=qemu VM_DST_IMG="${qemu}" VM_NAME="${qemu_name}" _write_qemu_conf
817821
fi
818-
VM_IMG_TYPE=qemu_uefi_secure _write_qemu_uefi_secure_conf
822+
VM_IMG_TYPE=qemu_uefi_secure VM_DST_IMG="${qemu_uefi_secure}" VM_NAME="${qemu_uefi_secure_name}" _write_qemu_uefi_secure_conf
819823
fi
820824
}
821825

0 commit comments

Comments
 (0)