8000 Merge pull request #119 from nathanchance/x86-update-machine-and-fix-efi · ClangBuiltLinux/boot-utils@9d1c9e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d1c9e9

Browse files
authored
Merge pull request #119 from nathanchance/x86-update-machine-and-fix-efi
< 8000 div class="d-flex flex-row flex-items-center">
2 parents be51dc1 + 0d039f1 commit 9d1c9e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

boot-qemu.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ def __init__(self):
661661
self._default_kernel_path = Path('arch/x86/boot/bzImage')
662662
self._initrd_arch = 'x86'
663663
self._qemu_arch = 'i386'
664+
self._qemu_args += ['-M', 'q35']
664665

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

0 commit comments

Comments
 (0)
0