Skip to content

NixOS initrd secrets fallback support shouldn't run as part of a build #85000

@emilazy

Description

@emilazy

The script that packs secrets into initrd is run as part of nixos-rebuild when the bootloader supporst initrd secrets, but as part of the system build when it doesn't. This means that sandboxing affects the ability to set options like boot.initrd.ssh.hostKeys = [ "/root/..." ]; that aren't accessible from within the sandbox.

The handling should probably be split up so that it runs separately to the Nix build process regardless of bootloader support, since ideally the Nix builders won't have access to serets.

I believe this is part of the cause for #84976.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions