Skip to content

Commit

Permalink
Merge pull request #119 from nathanchance/x86-update-machine-and-fix-efi
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis authored Apr 13, 2024
2 parents be51dc1 + 0d039f1 commit 9d1c9e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions boot-qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ def __init__(self):
self._default_kernel_path = Path('arch/x86/boot/bzImage')
self._initrd_arch = 'x86'
self._qemu_arch = 'i386'
self._qemu_args += ['-M', 'q35']

def run(self):
if self.use_kvm and not self.efi:
Expand Down Expand Up @@ -699,8 +700,8 @@ def run(self):
Path('OVMF/OVMF_VARS.fd'), # Debian and Ubuntu
]
ovmf_vars = utils.find_first_file(usr_share, ovmf_vars_locations)
self._efi_vars = Path(utils.BOOT_UTILS, 'images', self.initrd_arch,
ovmf_vars.name)
self._efi_vars = Path(utils.BOOT_UTILS, 'images',
self._initrd_arch, ovmf_vars.name)
# This file is in /usr/share, so it must be copied in order to be
# modified.
shutil.copyfile(ovmf_vars, self._efi_vars)
Expand Down

0 comments on commit 9d1c9e9

Please sign in to comment.