From: Tony C. <tc...@re...> - 2022-06-09 19:04:37
|
# HG changeset patch # User Tony Camuso <tc...@re...> # Date 1654800659 14400 # Thu Jun 09 14:50:59 2022 -0400 # Node ID be868f53407d4460491a0e77e5165025153b0329 # Parent 206a47f3e9d2c18c8a3db082216ee6fc3c5d475c 20_linux_tboot: efi logic was inverted There was a RAID0 system that could boot normally, but not through a tboot launch. The problem was that the logic in this script incorrectly appended 'noefi' to the grub.cfg module2 kernel stanza. When 'noefi' was removed from that stanza, the system could boot through a tboot launch. This patch corrects the logic in the script. diff -r 206a47f3e9d2 -r be868f53407d tboot/20_linux_tboot --- a/tboot/20_linux_tboot Thu Mar 17 23:58:50 2022 +0200 +++ b/tboot/20_linux_tboot Thu Jun 09 14:50:59 2022 -0400 @@ -105,11 +105,11 @@ if [ -d /sys/firmware/efi ] ; then mb_directive="multiboot2" mb_mod_directive="module2" - mb_extra_kernel="noefi" + mb_extra_kernel="" else mb_directive="multiboot2" mb_mod_directive="module2" - mb_extra_kernel="" + mb_extra_kernel="noefi" fi printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${tboot_version}" "${version}" |