summaryrefslogtreecommitdiff
path: root/dhcp3/dhcpd.grub
blob: a8ac4530590375431b2d1921116cc4bcba1dc56e (plain)
  1. # GRUB (GRand Unified Boot-loader) options
  2. # Usage:
  3. # Make a symlink from "/usr/share/grub-net/" to "/tftpboot/grub/", and
  4. # place a GRUB menu file at "/tftpboot/grub-hosts/menu.lst" (see
  5. # /usr/share/doc/grub-net/examples/menu.lst for an example).
  6. # Note that symlinks won't work if using chroot with tftp (which is much
  7. # recommended!) - copy pxegrub-all and nbgrub-all instead.
  8. # # Normal options first (including default filename, if any)
  9. # subnet 192.168.101.0 netmask 255.255.255.0 {
  10. # option broadcast-address 192.168.101.0;
  11. # option subnet-mask 255.255.255.0;
  12. # range 192.168.101.101 192.168.101.199;
  13. # }
  14. #
  15. # include "/etc/local-common/dhcp3/dhcpd.grub";
  16. #
  17. # # Accepted hosts (syntax is "1:" + MAC address)
  18. # subclass "grub-hosts" 1:00:50:ba:8b:c2:7b;
  19. # subclass "grub-hosts" 1:00:01:02:0a:0b:0c { fixed-address 192.168.1.101; another-option "bla bla"; }
  20. option grub-configfile code 150 = text;
  21. class "grub-hosts" {
  22. match pick-first-value (option dhcp-client-identifier, hardware);
  23. if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
  24. filename "grub/pxegrub-all";
  25. } else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
  26. filename "grub/nbgrub-all";
  27. option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
  28. } else {
  29. option grub-configfile "(nd)/grub-hosts/menu.lst";
  30. }
  31. }