We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cdf19f commit 2ca85baCopy full SHA for 2ca85ba
1 file changed
boot-qemu.py
@@ -441,6 +441,8 @@ def _setup_efi(self):
441
442
self._efi_img = Path(BOOT_UTILS, 'images', self._initrd_arch,
443
'efi.img')
444
+ # This file is in /usr/share, so it must be copied in order to be
445
+ # modified.
446
shutil.copyfile(aavmf, self._efi_img)
447
with self._efi_img.open(mode='r+b') as file:
448
file.truncate(efi_img_size)
@@ -650,6 +652,8 @@ def run(self):
650
652
ovmf_vars = utils.find_first_file(usr_share, ovmf_vars_locations)
651
653
self._efi_vars = Path(BOOT_UTILS, 'images', self.initrd_arch,
654
ovmf_vars.name)
655
656
657
shutil.copyfile(ovmf_vars, self._efi_vars)
658
659
super().run()
0 commit comments