I notice that with BIOS mode booting, that if rmmod tpm is put in the body of the menuentry, then there is the message "error: no such module", and "Press any key to continue..."
If it is put anywhere above fi the computer boots without an error message.
If it is put anywhere above the menuentry and below fi, we get scrolling "{FAILED} Failed to start Login Service...", etc. (but I have not tried indenting in these locations.
Booting in UEFI mode it seems that anywhere that "rmmod tpm" works in BIOS mode, works for UEFI also.
I notice that with BIOS mode booting, that if rmmod tpm is put in the body of the menuentry, then there is the message "error: no such module", and "Press any key to continue..."
If it is put anywhere above fi the computer boots without an error message.
If it is put anywhere above the menuentry and below fi, we get scrolling "{FAILED} Failed to start Login Service...", etc. (but I have not tried indenting in these locations.
Booting in UEFI mode it seems that anywhere that "rmmod tpm" works in BIOS mode, works for UEFI also.