-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.7
-
None
-
No
-
None
-
rhel-bootloader
-
8
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
script/lexer.c:336: script/lexer.c:336: token 289 text [b]:[18:58]0] token 289 text [b]:[18:58]0] script/lexer.c:336: script/lexer.c:336: token 267 text [}] token 267 text [}] error: CMD DIFF = 0 ms, Q:23664626.593, S:23664626.594, E:23664626.594 4rror: ../../grub-core/script/lexer.c:352:syntax error. error: ../../grub-core/script/lexer.c:352:Incorrect command. script/lexer.c:336: script/lexer.c:336: token 288 text [CMD] token 288 text [CMD]re/script/lexer.c:352:syntax error. script/lexer.c:336: script/lexer.c:336: token 288 text [DIFF] token 288 text [DIFF] script/lexer.c:336: script/lexer.c:336: token 289 text [=] token 289 text [=] script/lexer.c:336: script/lexer.c:336: token 289 text [0] token 289 text [0] script/lexer.c:336: script/lexer.c:336: token 289 text [ms,] token 289 text [ms,] script/lexer.c:336: script/lexer.c:336: token 289 text [Q:23664626.593,] token 289 text [Q:23664626.593,] script/lexer.c:336: script/lexer.c:336: token 289 text [S:23664626.594,] token 289 text [S:23664626.594,] script/lexer.c:336: script/lexer.c:336: token 289 text [E:23664626.594] token 289 text [E:23664626.594] script/lexer.c:336: script/lexer.c:336: token 259 text [ ] token 259 text [ ] script/lexer.c:336: script/lexer.c:336: token 0 text [] token 0 text [] kern/verifiers.c:212: kern/verifiers.c:212: string: CMD DIFF = 0 ms, Q:23664626.593, S:23664626.594, E:23664626.594, type: 2 string: CMD DIFF = 0 ms, Q:23664626.593, S:23664626.594, E:23664626.594, type: 2 commands/efi/tpm.c:282: commands/efi/tpm.c:282: log_event, pcr = 8, size = 0x3f, grub_cmd: CMD DIFF = 0 ms, Q:23664626.593, S:23664626.594, E:23664626.594 log_event, pcr = 8, size = 0x3f, grub_cmd: CMD DIFF = 0 ms, Q:23664626.593, S:23664626.594, E:23664626.594 error: ../../grub-core/script/function.c:119:can't find command `CMD'. error: ../../grub-core/script/function.c:119:can't find command `CMD'. grub>grub>
from the log, the system has enabled TPM and grub will run the logs which created by tpm.
I think grub just print the tmp log , no need run the logs.
--- a/grub-core/commands/efi/tpm.c +++ b/grub-core/commands/efi/tpm.c @@ -279,11 +279,14 @@ log_event (int pcr, grub_uint8_t *data, grub_size_t size) grub_dprintf ("tpm", "log_event, pcr = %d, size = 0x%lx\n", pcr, (unsigned long) size);- /* Old code was mistakenly treating TPM event data as a grub script. */ - grub_script_execute_sourcecode ((char *) data); + /* Fix: just print TPM event log as text, do not interpret as grub commands */ + grub_dprintf ("tpm", "TPM event log (PCR %d): %.*s\n", + pcr, + (int) size, + (const char *) data); return GRUB_ERR_NONE; }
https://beaker.engineering.redhat.com/recipes/19494992#installation