Unload tpm module to support booting ISOs with GRUB 2.04 on UEFI systems
authorMichael Prokop <mika@grml.org>
Fri, 27 Nov 2020 17:13:11 +0000 (18:13 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 23 Dec 2020 14:09:55 +0000 (15:09 +0100)
See https://help.ubuntu.com/community/Grub2/ISOBoot#Menuentry_Example

Closes: #975835
Thanks: Vasek Opekar <opekar@eccam.com> for the bug report

42_grml

diff --git a/42_grml b/42_grml
index 96e5e1f..4a76432 100755 (executable)
--- a/42_grml
+++ b/42_grml
@@ -116,6 +116,8 @@ ${grub_prep}
         export iso_path
         kernelopts=" $CUSTOM_BOOTOPTIONS $additional_param "
         export kernelopts
+        # support booting recent GRUB versions on UEFI systems
+        rmmod tpm
         loopback loop "${rel_dirname%/}/$grml"
         set root=(loop)
         configfile /boot/grub/loopback.cfg