Bug 1198598 - systemd-boot: shim installation
Summary: systemd-boot: shim installation
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Joey Lee
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 1198589
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-19 10:30 UTC by Ludwig Nussel
Modified: 2023-04-28 10:21 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2022-04-19 10:30:04 UTC
`bootctl install` currently only installs systemd-boot into the efi partition. If we want to be able to boot on systems that only have the MS cert we'd need bootctl to also take care of shim somehow. Shim currently hardcodes grub.efi so systemd-boot would have to be installed with that name or shim needs adjustments.
Probably discussion with upstream needed.
Comment 1 Joey Lee 2022-05-10 14:54:00 UTC
Upstream discussion for supporting multiple second stage loaders:

RFE: add support for multiple second stage loaders
https://github.com/rhboot/shim/issues/472
Comment 2 Franck Bui 2022-06-15 13:12:33 UTC
So as far I understood this should be "fixed" by adding support for multiple boot loader in shim, right ?

If so, Joey, can you take this bug over ?
Comment 3 Ludwig Nussel 2022-06-15 13:19:06 UTC
well, bootctl install would have to copy shim in any case which it currently does not. With the current shim sd-boot would have to install itself as grub.efi but that's cosmetics until alternative names are implemented
Comment 4 Joey Lee 2022-11-03 08:29:58 UTC
I will continue to watch the status on shim upstream.
Comment 5 Ludwig Nussel 2023-04-27 09:09:50 UTC
Getting bootctl install to actually also install shim may take a bit. Maybe we need to disable bootctl install and just use a script for now

https://github.com/systemd/systemd/issues/27234
https://github.com/systemd/systemd/pull/27322

What's the status about shim not hardcoding grub.efi though? Any chance to get that fixed?
Comment 6 Joey Lee 2023-04-28 10:21:42 UTC
(In reply to Ludwig Nussel from comment #5)
> Getting bootctl install to actually also install shim may take a bit. Maybe
> we need to disable bootctl install and just use a script for now
> 
> https://github.com/systemd/systemd/issues/27234
> https://github.com/systemd/systemd/pull/27322
> 
> What's the status about shim not hardcoding grub.efi though? Any chance to
> get that fixed?

Unfortunately no news on supporting multiple boot loaders. Peter Jones is open on this topic on upstream. But currently no definite design and no code. At least it's not public. 

Dennis and me will try to reactivate the topic on upstream.