Netboot: Difference between revisions
Clarify how to run the second example |
Switch from "nix build" to "nix-build" command so it works out-of-the-box without experimental features |
||
Line 49: | Line 49: | ||
</syntaxHighlight>Building:<syntaxhighlight lang="bash"> | </syntaxHighlight>Building:<syntaxhighlight lang="bash"> | ||
# Build pixiecore runner | # Build pixiecore runner | ||
nix build | nix-build system.nix -o /tmp/run-pixiecore | ||
</syntaxhighlight>Running:<syntaxhighlight lang="bash"> | </syntaxhighlight>Running:<syntaxhighlight lang="bash"> | ||
# Open required firewall ports | # Open required firewall ports | ||
Line 209: | Line 209: | ||
Building: | Building: | ||
<syntaxhighlight lang="bash"># Build pixiecore runner | <syntaxhighlight lang="bash"># Build pixiecore runner | ||
nix build | nix-build netboot.nix -o /tmp/run-pixiecore | ||
# Build dnsmasq + pxelinux runner | # Build dnsmasq + pxelinux runner | ||
nix build | nix-build netboot.nix --arg legacy true -o /tmp/run-dnsmasq | ||
# Build for some ancient system with a serial console | # Build for some ancient system with a serial console | ||
nix build | nix-build netboot.nix --arg name '"ancient-netboot"' -o /tmp/run-netboot \ | ||
--arg configuration 'import ./ancient-config.nix' \ | --arg configuration 'import ./ancient-config.nix' \ | ||
--arg legacy true --arg proxynets '["10.2.1.0"]' \ | --arg legacy true --arg proxynets '["10.2.1.0"]' \ |