]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Rework QemuFirmware= 2478/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 11 Mar 2024 13:57:58 +0000 (14:57 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 13 Mar 2024 10:11:29 +0000 (11:11 +0100)
commitb68a3ff10fb95c835c541897fc807e312e7351bc
treed5bdd5b03edab54f49e9c1525a4a54c71b89e5b5
parent7e7a3c71696d66d1774abff3eff80d5032612c88
Rework QemuFirmware=

- Use the qemu official firmware descriptions to look up OVMF
  firmware instead of having our own homegrown logic.
- Add QemuFirmware=uefi-secure-boot to explicitly look for firmware
  with secure boot support
- Add QemuFirmwareVariables=microsoft to use OVMF variables with
  Microsoft keys enrolled
- Add QemuFirmwareVariables=custom to enroll the certificate from
  SecureBootCertificate= into the OVMF variables

This commit also contains the changes from a second commit that
was accidentally rebased into this one:

Only use already signed binaries when ShimBootloader=signed

When we're using signed shim, we need to make sure we use already
signed bootloaders, kernel images and UKIs. Anything we sign ourselves
will cause security violations in shim.
13 files changed:
mkosi.conf
mkosi.conf.d/20-arch.conf
mkosi.conf.d/20-opensuse.conf
mkosi.conf.d/30-centos-fedora/mkosi.conf.d/20-uefi.conf
mkosi.conf.d/30-debian-ubuntu/mkosi.conf.d/20-x86-64.conf
mkosi/__init__.py
mkosi/config.py
mkosi/qemu.py
mkosi/resources/mkosi-tools/mkosi.conf.d/10-arch.conf
mkosi/resources/mkosi-tools/mkosi.conf.d/10-centos-fedora/mkosi.conf
mkosi/resources/mkosi.md
mkosi/vmspawn.py
tests/test_boot.py