Skip to content

nix-netboot-serve skips stage1 initrd #26

Open
@delroth

Description

The way nix-netboot-serve currently works boots straight into the stage2 init (the one in the Nix store) and ignores whatever would run in the "normal" initrd for the NixOS configuration being netbooted. This means, for example, that:

  • There is no support for pivot_root-ing to a non-tmpfs / filesystem.
  • Things like boot.initrd.postMountCommands never get run.
  • This probably relies on unstated assumptions of how the stage1 -> stage2 handover works. It's unclear how that will for example work with systemd-stage1.

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