nix-community / nixos-images

Automatically build (netboot) images for NixOS [maintainer=@Mic92]
MIT License
187 stars 35 forks source link

image-installer-nixos ISO images fail to boot due to missing `/dev/root` (`sysroot-iso.mount` fails) #258

Open nvmd opened 1 month ago

nvmd commented 1 month ago

Cross-posting nixos/nixpkgs#327187 issue here.

Even though it's an upstream issue, boot.initrd.systemd.enable defaults to false upstream, but here it's unavoidably boot.initrd.systemd.enable = true effectively breaking ISO install images here altogether, therefore I think it makes sense to track this issue here as well.

Tested version: accee005735844d57b411d9969c5d0aabc6a55f6 Both image-installer-nixos-stable and image-installer-nixos-unstable are affected.

Attempting to set boot.initrd.systemd.enable = false; causes the following error on build attempt

Failed assertions:
       - `system.etc.overlay.enable` requires `boot.initrd.systemd.enable`

Dependency on system.etc.overlay.enable seems to be coming from profiles/perlless.nix https://github.com/nix-community/nixos-images/blob/accee005735844d57b411d9969c5d0aabc6a55f6/nix/installer.nix#L35

Mic92 commented 1 month ago

Just seeing the issue. I did disable this in our installer: https://github.com/nix-community/nixos-images/pull/257/files and wait for this to be fixed in upstream.

Mic92 commented 1 month ago

Looks like we are still affected by this somewhat.