Skip to content

Add support for generating a .iso with a signed bootloader #406

Open
@Pablito2020

Description

@Pablito2020

I am having an issue generating a new .iso that has a signed bootloader (so I don't have to disable secure-boot on the pc when I am booting from a usb drive with a custom nixos iso on it).

When we generate an ISO file (with Nixos Generators or by importing the DVD-iso-image the EFI application is a grub2 bootloader (The code can be found here: https://github.com/NixOS/nixpkgs/blob/72631d762fafb9a126b5908e6387e163dc7ba8b7/nixos/modules/installer/cd-dvd/iso-image.nix#L243).

I think it would be beneficial to introduce a NixOS module that allows for ISO generation using the systemd-boot bootloader module from lanzaboote. This would enable the creation of ISOs with a signed bootloader, making them compatible with Secure Boot without requiring users to disable it.

I am thinking about a module because I don't see an easy way for the end user to add it "manually" without using the make-iso-9660-image function. Anyway, if an easy solution exists I think it could be added to the documentation.

PS: Thanks in advance! This project has made it easier than ever to enable Secure Boot on my machines 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions