Bug 1878381 - sign systemd-boot with fedora keys
Summary: sign systemd-boot with fedora keys
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-12 16:19 UTC by Damian Ivanov
Modified: 2020-10-26 11:14 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-26 11:14:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Damian Ivanov 2020-09-12 16:19:12 UTC
systemd-boot can be used to replace grub as bootloader.
This works fine if kernels are manually added as entry when the kernel updates.

To support secureboot with fedora / systemd-boot two things are required,
this report is for 1)
1) Sign systemd-bootx64.efi with fedora keys so systemd-boot can load.

Comment 1 Zbigniew Jędrzejewski-Szmek 2020-10-08 14:04:53 UTC
I have no idea how this would work. I see grub2 calls pesign during build that does some
smartcard callout. I guess we'd need something similar. If someone who knows how this
works can help with the implementation, I'd be happy to provide such signatures.

Comment 2 Damian Ivanov 2020-10-23 16:02:06 UTC
Wouldn't it be enough to include BuildRequires: pesign and use pesign macros like in grub?

Comment 3 Damian Ivanov 2020-10-26 08:00:48 UTC
I have done additional research and it was mentioned on github:/systemd that systemd-boot itself is not designed to be signed.
The title of this issue should be rather that shim is not working nicely with systemd-boot

Comment 4 Damian Ivanov 2020-10-26 11:14:28 UTC
After further discussion it seems shim will never play well with systemd-boot,
neither does it support to be signed.

If one wants to use systemd-boot with secureboot, the efitools are required which 
are not packaged in fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1891465


Note You need to log in before you can comment on or make changes to this bug.