Trustedboot
See GardenLinux Boot Modes for high level docs.
How to Build & Test on macOS
- make sure you have build the secureboot certificate chain (
./cert/build) - build an image with the
_trustedbootflag enabled and optionally the_tpm2flag, e.g../build kvm_dev_trustedboot_tpm2 - get a version of edk2 with secureboot support:
mkdir edk2 podman run --rm -v "$PWD/edk2:/mnt" debian:testing bash -c 'apt update && apt install -y qemu-efi-aarch64 && cp /usr/share/AAVMF/AAVMF_CODE.secboot.fd /usr/share/AAVMF/AAVMF_VARS.fd /mnt/' - boot with
start-vm(be sure to add the,qcow=4Gpart which is vital to make the disk large enough for the repartition):./bin/start-vm --ueficode edk2/AAVMF_CODE.secboot.fd --uefivars edk2/AAVMF_VARS.fd --tpm2 disk.qcow2,qcow=4G