Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created November 18, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/e266881fb6645c126710 to your computer and use it in GitHub Desktop.
Save cleverca22/e266881fb6645c126710 to your computer and use it in GitHub Desktop.
if exists user-class and option user-class = "iPXE" {
filename "http://192.168.2.61/test/script.ipxe";
} else {
filename = "undionly.kpxe";
}
total 956M
-r--r--r-- 1 root root 3.5M Nov 18 01:39 bzImage
-r--r--r-- 1 root root 6.3M Nov 18 01:39 initrd
-r--r--r-- 1 root root 946M Nov 18 01:40 nix-store.squashfs
-rw-r--r-- 1 clever clever 237 Nov 18 01:42 script.ipxe
#!ipxe
kernel bzImage init=/nix/store/m4f2id4z9hvghvgs4kym5vy2gjdf28fb-nixos-system-nixos-16.03pre56789.gfedcba/init root=192.168.2.61:/test/ boot.shell_on_fail nomodeset loglevel=7 console=ttyS0
initrd initrd
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment