Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clever@c2d /var/www/c2d $ nix-build -A netboot -o netboot '<nixpkgs/nixos/release.nix>' -Q -j 8
- clever@c2d /var/www/c2d $ cat boot.php
- <?php
- switch ($_GET['mac']) {
- case '00:1c:23:16:4b:b3';
- ?>
- #!ipxe
- sanboot iscsi:192.168.2.11:::1:iqn.2016-01.laptop-root
- <?php
- break;
- case '08:00:27:15:bd:7b';
- if ($_GET['version'] == '') { # virtualbox pxe is too old, upgrade
- ?>
- #!ipxe
- chain tftp://192.168.2.61/undionly.kpxe
- <?php
- } else { # upgrade complete, chainload the script
- ?>
- #!ipxe
- chain http://c2d.localnet/netboot/netboot.ipxe
- <?php
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement