Netboot: Difference between revisions

Nh2 (talk | contribs)
Switch from "nix build" to "nix-build" command so it works out-of-the-box without experimental features
Nh2 (talk | contribs)
Link issue
 
(One intermediate revision by the same user not shown)
Line 127: Line 127:
     modules = [
     modules = [
       <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
       <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
      # Reduce build time by ~7x (~1 minute instead of many minutes) by not using the highest compression (image is 5% larger).
      ({ ... }: { netboot.squashfsCompression = "zstd -Xcompression-level 6"; })
       version-module
       version-module
       example-configuration
       example-configuration
Line 205: Line 207:


in
in
if legacy then run-dnsmasq else run-pixiecore}}
if legacy then run-dnsmasq else run-pixiecore|name=netboot.nix|lang=nix}}


Building:
Building:
Line 221: Line 223:


* Run the example exactly like the other example further up on the page.
* Run the example exactly like the other example further up on the page.
=== Troubleshooting ===
* Error "'''autoexec.ipxe... Operation not supported'''": See [https://github.com/NixOS/nixpkgs/pull/378513#pullrequestreview-3081586117 this issue].


=== See also ===
=== See also ===