systemd-stub feature parity #94

Open
opened 2023-02-02 23:51:19 +00:00 by RaitoBezarius · 6 comments
RaitoBezarius commented 2023-02-02 23:51:19 +00:00 (Migrated from github.com)

We would like to have similar design and features as systemd-stub, ideally, lanzastub should be a drop-in replacement tailored for NixOS:

Random seed

  • Support

SMBIOS

  • Load command line via SMBIOS

Addons support

  • Load command line addons

Sections in the stub

  • DTB support
  • Bootsplash support
  • Expected TPM2 PCR signatures
  • TPM2 PCR public key support

Companion files

  • Local credentials files specific to that generation
  • System extensions images
  • Global credentials

EFI variables passed to the OS

  • LoaderDevicePartUUID
  • LoaderFirmwareInfo
  • LoaderFirmwareType
  • LoaderImageIdentifier
  • StubInfo
  • StubFeatures
  • StubPcrKernelImage
  • StubPcrKernelParameters
  • StubPcrInitRDSysExts
We would like to have similar design and features as `systemd-stub`, ideally, lanzastub should be a *drop-in* replacement tailored for NixOS: ## Random seed - [ ] Support ## SMBIOS - [ ] Load command line via SMBIOS ## Addons support - [ ] Load command line addons ## Sections in the stub - [ ] DTB support - [ ] Bootsplash support - [x] Expected TPM2 PCR signatures - [x] TPM2 PCR public key support ## Companion files - [x] Local credentials files specific to that generation - [x] System extensions images - [x] Global credentials ## EFI variables passed to the OS - [x] `LoaderDevicePartUUID` - [x] `LoaderFirmwareInfo` - [x] `LoaderFirmwareType` - [x] `LoaderImageIdentifier` - [x] `StubInfo` - [x] `StubFeatures` - [x] `StubPcrKernelImage` - [x] `StubPcrKernelParameters` - [x] `StubPcrInitRDSysExts`
nikstur commented 2023-02-03 00:54:07 +00:00 (Migrated from github.com)

Working on this here makes it much harder for other people, especially systemd upstream but also maintainers of other distros to work on the next gen sd-stub in Rust. I'd rather see development happen somewhere else (maybe here: https://github.com/nikstur/sd-stub-rs) and then moved into the systemd namespace as soon as possible.

Working on this here makes it much harder for other people, especially systemd upstream but also maintainers of other distros to work on the next gen sd-stub in Rust. I'd rather see development happen somewhere else (maybe here: https://github.com/nikstur/sd-stub-rs) and then moved into the systemd namespace as soon as possible.
nikstur commented 2023-02-08 15:26:32 +00:00 (Migrated from github.com)

This is a useful tracker, thx @RaitoBezarius But since we won't use it here, I closed the issue.

This is a useful tracker, thx @RaitoBezarius But since we won't use it here, I closed the issue.
RaitoBezarius commented 2023-04-30 00:18:12 +00:00 (Migrated from github.com)

As I am going to implement all of this first, then move it to sd-stub, I will track it here first.

As I am going to implement all of this first, then move it to sd-stub, I will track it here first.
RaitoBezarius commented 2023-05-01 00:21:51 +00:00 (Migrated from github.com)

DTB support and bootsplash are hard to do, they are blocked on upstream support.

DTB support and bootsplash are hard to do, they are blocked on upstream support.
clhodapp commented 2023-07-23 21:36:53 +00:00 (Migrated from github.com)

@RaitoBezarius which upstream?

@RaitoBezarius which upstream?
RaitoBezarius commented 2023-07-23 21:55:38 +00:00 (Migrated from github.com)

@RaitoBezarius which upstream?

uefi-rs :)

DTB is fixed now, bootsplash is still blocked.

> @RaitoBezarius which upstream? `uefi-rs` :) DTB is fixed now, bootsplash is still blocked.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: raito/lanzaboote#94
No description provided.