Skip to content

Commit

Permalink
Merge pull request #1915 from flatcar/scripts
Browse files Browse the repository at this point in the history
build_library: Use original qemu image name in qemu script
  • Loading branch information
pothos committed Apr 17, 2024
2 parents ccd2df1 + 61cfb9c commit fdb3754
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build_library/vm_image_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,13 @@ _write_qemu_uefi_conf() {
# We now only support building qemu_uefi and generate the
# other artifacts from here
if [ "${VM_IMG_TYPE}" = qemu_uefi ]; then
local qemu="${VM_DST_IMG/qemu_uefi/qemu}"
local qemu_uefi_secure="${VM_DST_IMG/qemu_uefi/qemu_uefi_secure}"
local qemu_name="${VM_NAME/qemu_uefi/qemu}"
local qemu_uefi_secure_name="${VM_NAME/qemu_uefi/qemu_uefi_secure}"
if [ "${BOARD}" = amd64-usr ]; then
VM_IMG_TYPE=qemu _write_qemu_conf
VM_IMG_TYPE=qemu_uefi_secure _write_qemu_uefi_secure_conf
VM_IMG_TYPE=qemu VM_DST_IMG="${qemu}" VM_NAME="${qemu_name}" _write_qemu_conf
VM_IMG_TYPE=qemu_uefi_secure VM_DST_IMG="${qemu_uefi_secure}" VM_NAME="${qemu_uefi_secure_name}" _write_qemu_uefi_secure_conf
fi
fi
}
Expand Down

0 comments on commit fdb3754

Please sign in to comment.