Skip to content

feat: enable support for XBOOTLDR#456

Open
sarunint wants to merge 10 commits intonix-community:masterfrom
sarunint:xbootldr
Open

feat: enable support for XBOOTLDR#456
sarunint wants to merge 10 commits intonix-community:masterfrom
sarunint:xbootldr

Conversation

@sarunint
Copy link
Copy Markdown

@sarunint sarunint commented May 15, 2025

Fixes #173

In some systems, especially those pre-installed with Windows, the EFI System Partition (ESP) might not be large enough to contain the kernels and initrds used to boot.

XBOOTLDR is a partition specified by Boot Loader Specification to accommodate storing additional boot entries.

Currently, Lanzaboote only supports writing kernels, initrds, and EFI stubs to ESP but not XBOOTLDR. This PR adds support for it by

  • Add an extra argument to lzbt-systemd to denote $BOOT partition, which is a placeholder for XBOOTLDR or ESP, if XBOOTLDR doesn't exists.
  • Retrieve XBOOTLDR mount point from boot.loader.systemd-boot.xbootldrMountPoint and pass it along to lzbt-systemd accordingly.

@sarunint sarunint marked this pull request as draft May 15, 2025 20:22
@sarunint sarunint marked this pull request as ready for review April 6, 2026 10:50
@sarunint
Copy link
Copy Markdown
Author

sarunint commented Apr 6, 2026

After nearly a whole year, I finally have time to make this finally works with appropriate tests.

Comment on lines -107 to -108
system.build.espFiles = espFiles;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this is needed in the first place.

Comment on lines +211 to +212
default = lib.genList (_: null) (lib.length cfg.extraEfiSysMountPoints);
defaultText = "[ null ] # repeated to match extraEfiSysMountPoints length";
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the correct way to generate a list of nulls to a specific length

@sarunint sarunint force-pushed the xbootldr branch 2 times, most recently from 25c1efb to 2e96897 Compare April 11, 2026 10:34
@sarunint sarunint changed the title feat(tool): enable support for XBOOTLDR in lzbt-systemd feat: enable support for XBOOTLDR Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XBOOTLDR support

1 participant