Skip to content

Commit 2ca85ba

Browse files
committed
boot-qemu.py: Add comment around why firmware files are being copied
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 9cdf19f commit 2ca85ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

boot-qemu.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ def _setup_efi(self):
441441

442442
self._efi_img = Path(BOOT_UTILS, 'images', self._initrd_arch,
443443
'efi.img')
444+
# This file is in /usr/share, so it must be copied in order to be
445+
# modified.
444446
shutil.copyfile(aavmf, self._efi_img)
445447
with self._efi_img.open(mode='r+b') as file:
446448
file.truncate(efi_img_size)
@@ -650,6 +652,8 @@ def run(self):
650652
ovmf_vars = utils.find_first_file(usr_share, ovmf_vars_locations)
651653
self._efi_vars = Path(BOOT_UTILS, 'images', self.initrd_arch,
652654
ovmf_vars.name)
655+
# This file is in /usr/share, so it must be copied in order to be
656+
# modified.
653657
shutil.copyfile(ovmf_vars, self._efi_vars)
654658

655659
super().run()

0 commit comments

Comments
 (0)