Need help with Bazzite + rEFInd Secure Boot

I’m currently struggling to get Bazzite working together with secure boot and refind. When enabled, I get secure key warnings, even after enrolling secure key prior to refind install. I’ve managed to understand that I might need to shim something during the install to make it play nice with secure boot. But I can’t for the life of me figure it out. Please help! 🫠 Its for an AM5 based desktop.
10 Replies
PixelOaf
PixelOafOP4mo ago
Have followed this guide: https://github.com/aarron-lee/legion-go-tricks and found somewhere an old Reddit thread where someone suggested to add a —shim argument at step #5, but can’t get it to work
GitHub
GitHub - aarron-lee/legion-go-tricks: Guides, Tricks, and Tips to g...
Guides, Tricks, and Tips to get the Legion Go running best on Linux - aarron-lee/legion-go-tricks
PixelOaf
PixelOafOP4mo ago
Reddit
Yelloris's comment on "LGO dual boot + gyro aiming + desktop showca...
Explore this conversation and more from the LegionGo community
PixelOaf
PixelOafOP4mo ago
No description
zany130
zany1306d ago
Sorry for the bump but Did you see ever get this working @PixelOaf
PixelOaf
PixelOafOP5d ago
I think I did. Eventually moved to Grub to spare my mind. But let me see if I can find my notes … install rEFInd as per the guide above then follow as per my terminal commands sudo find / name “refind.cer” sudo refind-install —shim /boot/efi/EFI/fedora/shimx64.efi sudo cp /etc/refind.d/keys/refind.cer /boot/efi/EFI/refind/ the cp directory should match up with the one you saw when using the prior find prompt Confirm that the certificate can be found in your rEFInd directory with sudo ls /boot/efi/EFI/refind sudo mokutil -i /boot/efi/EFI/refind/refind.cer Then you should be good to go and do a sudo reboot Hope it helps 🙂
zany130
zany1305d ago
thanks! i wasnt able to find a refind.cer file from what I understand sudo refind-install —shim /boot/efi/EFI/fedora/shimx64.efi should create it for you if you have openssl (which bazzite does) and sbsigntools (which i installed the rpm)
PixelOaf
PixelOafOP5d ago
It should but due to the immutable nature o Bazzite, I couldn’t get that way to work. Refind already comes with its own certificate which you can use as per the commands, which eliminates the requirement to sign your own Make sure that you follow the guide for legion-go found above and then reboot after install. then you should be able to find a refind.cer with the command. If i understood your problem correctly
zany130
zany1305d ago
Ahh looks like the rEFInd package in the fedora repos don't include the key (which is strange especially since there is a rEFInd-unsinged and a normal rEFInd obviously I picked the normal one unless the unsigned one has the keys?) You need to specifically use the rpm from the source forge
PixelOaf
PixelOafOP5d ago
Ah well glad you figured that one out
zany130
zany1304d ago
hmm its still giving me a unsigned error looking at sbverify it seems not all the componets of refind are signed correctly
bash-5.2# sbverify grubx64.efi
Signature verification failed
bash-5.2# sbverify mmx64.efi
warning: data remaining[729952 vs 848080]: gaps between PE/COFF sections?
Signature verification failed
bash-5.2# sbverify shimx64.efi
warning: data remaining[823272 vs 949424]: gaps between PE/COFF sections?
Signature verification OK
bash-5.2# sbverify drivers_x64/ext4_x64.efi
Signature verification failed
bash-5.2# sbverify grubx64.efi
Signature verification failed
bash-5.2# sbverify mmx64.efi
warning: data remaining[729952 vs 848080]: gaps between PE/COFF sections?
Signature verification failed
bash-5.2# sbverify shimx64.efi
warning: data remaining[823272 vs 949424]: gaps between PE/COFF sections?
Signature verification OK
bash-5.2# sbverify drivers_x64/ext4_x64.efi
Signature verification failed
specficly the ext4 driver and the refind loader renamed as grub64.efi (the refind install scripts seems to rename the refind loader to grub to workaround a bug in shimx64 acording to the docs) got it to work by following https://github.com/jlobue10/rEFInd_GUI#secure-boot-considerations :party:

Did you find this page helpful?