Skip to content

nixos/limine: switch to UKI from bzImage #413039

@JohnRTitor

Description

@JohnRTitor

Currently Limine packs the kernel into bzImage format, which means they can not be directly invoked by bootloaders like systemd-boot or rEFInd.

There is a much better way of shipping a kernel image, which is to say, by using UKIs (Unified Kernel Image).1 In addition, UKIs can even be individually signed by sbctl, so there's no issue launching them independently, in a Secureboot system.2

Note that on Nixpkgs, we already have mechanisms to generate an UKI3, and boot loaders like systemd-boot default to that.

Pinging maintainers:

@programmerlexi @lzcunt @phip1611 @surfaceflinger @Prince213

Footnotes

  1. https://wiki.archlinux.org/title/UKI

  2. https://wiki.archlinux.org/title/Limine

  3. https://github.com/NixOS/nixpkgs/blob/6a51e9eec9a08bd5e5430cffcfc027a910067bc4/nixos/modules/system/boot/uki.nix#L10

Metadata

Metadata

Assignees

Labels

0.kind: enhancementAdd something new or improve an existing system.2.status: backlogThis is a low priority2.status: blocked by pr/issueAnother PR or issue is preventing this from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions