mirror of
https://github.com/flatcar/scripts.git
synced 2026-03-04 21:11:43 +01:00
build_library: grub: Bring back linuxefi to stabilize PCR4
With grubs linux command, the kernel image is measured to PCR4 when SecureBoot is enabled but not measured when SecureBoot is enabled. I don't think is intentional, since SecureBoot state is measured to PCR7. Try to switch to linuxefi again, since we're back on the common rhboot grub codebase.
This commit is contained in:
parent
cb972ccd23
commit
7e80c4cc4e
@ -94,6 +94,12 @@ if [ "$grub_cpu" = arm64 ]; then
|
||||
fi
|
||||
|
||||
set suf=""
|
||||
# UEFI uses linuxefi/initrdefi instead of linux/initrd except for arm64
|
||||
if [ "$grub_platform" = efi ]; then
|
||||
if [ "$grub_cpu" != arm64 ]; then
|
||||
set suf="efi"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Assemble the options applicable to all the kernels below
|
||||
set linux_cmdline="rootflags=rw mount.usrflags=ro consoleblank=0 $linux_root $linux_console $first_boot $randomize_disk_guid $extra_options $oem $linux_append"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user