Skip to content

Commit

Permalink
build_library/grub.cfg: Enable TPM module by default
Browse files Browse the repository at this point in the history
For binding a secret to the OS we need TPM PCRs that measure the kernel
and boot configuration (UEFI). Used for:
flatcar/flatcar-website#317
  • Loading branch information
pothos committed Apr 9, 2024
1 parent 385b929 commit ff2d7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_library/grub_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ case "${FLAGS_target}" in
CORE_NAME="core.img"
;;
x86_64-efi)
CORE_MODULES+=( serial linux efi_gop efinet pgp http tftp )
CORE_MODULES+=( serial linux efi_gop efinet pgp http tftp tpm )
CORE_NAME="core.efi"
SBAT_ARG=( --sbat "${BOARD_ROOT}/usr/share/grub/sbat.csv" )
;;
x86_64-xen)
CORE_NAME="core.elf"
;;
arm64-efi)
CORE_MODULES+=( serial linux efi_gop efinet pgp http tftp )
CORE_MODULES+=( serial linux efi_gop efinet pgp http tftp tpm )
CORE_NAME="core.efi"
BOARD_GRUB=1
SBAT_ARG=( --sbat "${BOARD_ROOT}/usr/share/grub/sbat.csv" )
Expand Down
1 change: 1 addition & 0 deletions changelog/changes/2024-04-09-grub-tpm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Enabled the GRUB TPM2 module to measure the boot code path and files into PCR 8+9 in UEFI ([scripts#1861](https://github.com/flatcar/scripts/pull/1861))

0 comments on commit ff2d7a8

Please sign in to comment.