Bug 1197608

Summary: trusted boot option refers to trustedgrub2
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ludwig Nussel <lnussel>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: fkrueger, jreidinger, mchang, snwint
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://trello.com/c/W6CKhmvf
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Ludwig Nussel 2022-03-28 15:33:24 UTC
Created attachment 857442 [details]
y2logs

During installation of TW 20220324 I enabled the option for trusted boot. According to the help screen it's support install trustedgrub2 etc but was not the case after all.
Comment 1 Ludwig Nussel 2022-03-28 15:42:31 UTC
trustedgrub2 only contains docu, not sure what this option in yast is meant to do in the first place :/
Comment 2 Ludwig Nussel 2022-03-28 15:48:59 UTC
ok, it sets TRUSTED_BOOT in sysconfig for perl-Bootloader. That works. So references to trustedgrub2 are outdated.
Comment 3 Steffen Winterfeldt 2022-03-28 16:03:41 UTC
trustedgrub2(-i386-pc) was some ancient non-UEFI variant, AFAIK.

Michael, can we safely forget about this?
Comment 4 Michael Chang 2022-03-29 02:04:49 UTC
(In reply to Steffen Winterfeldt from comment #3)
> trustedgrub2(-i386-pc) was some ancient non-UEFI variant, AFAIK.

Yes.

> Michael, can we safely forget about this?

If it mentions trustedgrub2 in UEFI install then it is wrong as that is for i386-pc only. For UEFI, signed /usr/share/grub2/x86_64-efi/grub-tpm.efi will be installed to enable measure boot according to https://www.gnu.org/software/grub/manual/grub/grub.html#Measured-Boot ...
Comment 5 Steffen Winterfeldt 2022-03-30 11:11:14 UTC
Added to YaST Kanban board.
Comment 6 Frank Krüger 2022-08-06 22:15:39 UTC
(In reply to Steffen Winterfeldt from comment #5)
> Added to YaST Kanban board.

Any news or solution?
Comment 7 Steffen Winterfeldt 2022-08-08 12:51:00 UTC
Not yet, but it's in our current sprint.
Comment 8 Steffen Winterfeldt 2022-08-11 13:02:58 UTC
After playing a bit with tpm2 (in qemu), it seems the only apparent thing to
improve is the help text:

https://github.com/yast/yast-bootloader/pull/670

Apart from that, on non-efi x86_64 the system startup always runs into
"TrustedeGRUB2 TPM Error" while an efi system boots fine and I see
grub measuring things with

tpm2_eventlog /sys/kernel/security/tpm0/binary_bios_measurements

but otoh grub seems not to try block the boot process in any way.

So the usefulness of the status quo is not apparent to me but likely I'm just
missing something in handling tpm.

BTW, it might be a good idea to auto-select the tpm2.0-tools package.
Comment 9 Steffen Winterfeldt 2022-08-11 13:10:16 UTC
fix submitted