From 63fd54a1cdf7ab2b9445ae471bb312ea58561789 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 14 Aug 2009 23:37:20 +0200 Subject: Rename dhcpd.pxelinux.d-i → dhcpd.d-i. split off dhcpd.d-i.host and add preseed hint. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dhcp3/dhcpd.d-i | 50 ++++++++++++++++++++++++++++++++++++++++++ dhcp3/dhcpd.d-i.host | 13 +++++++++++ dhcp3/dhcpd.pxelinux.d-i | 56 ------------------------------------------------ 3 files changed, 63 insertions(+), 56 deletions(-) create mode 100644 dhcp3/dhcpd.d-i create mode 100644 dhcp3/dhcpd.d-i.host delete mode 100644 dhcp3/dhcpd.pxelinux.d-i (limited to 'dhcp3') diff --git a/dhcp3/dhcpd.d-i b/dhcp3/dhcpd.d-i new file mode 100644 index 0000000..5e2bb9e --- /dev/null +++ b/dhcp3/dhcpd.d-i @@ -0,0 +1,50 @@ +# (to be loaded _after_ dhcpd.d-i.host to override defaults + +class "pxeclient" { + match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; + + ## Only PXE clients, will get those options + ## (when they are _actually_ net-booting from their PXE agent). + + site-option-space "pxelinux"; + option pxelinux.magic f1:00:74:7e; + # Make path relative to tftp's root directory. + option pxelinux.pathprefix "/"; + #option pxelinux.reboottime 0; + + ## x86 (i386, amd64, x86_64, IA32) architectures. + if substring (option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000" { + #filename "debian-installer/etch/i386/pxelinux.0"; + #option pxelinux.configfile "debian-installer/etch/i386/pxelinux.cfg/default"; + + ## If you want to use the meta menu : + filename "debian-installer/pxelinux.0"; + option pxelinux.configfile "debian-installer/pxelinux.cfg/default"; + #or# option pxelinux.configfile "debian-installer/pxelinux.cfg/default.serial-9600"; + } + + ## IA64 (Itanium) + if substring (option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002" { + #filename "debian-installer/etch/ia64/elilo.efi"; + #option pxelinux.configfile "debian-installer/etch/ia64/elilo.conf"; + + ## If you want to use the overview menu : + filename "debian-installer/elilo.efi"; + option pxelinux.configfile "debian-installer/elilo.conf"; + } + + if exists dhcp-parameter-request-list { + # We Always send the PXELINUX options (values are in hexadecimal: 0xd0=208) + option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1,d2,d3); + } + +} + +class "sun" { + match if substring (option vendor-class-identifier, 0, 5) = "SUNW."; + # Needs improvements: some Sun have x86 CPUs !! + # uname -i : "SUNW.SPARCstation", "SUNW.Ultra", "SUNW.Sun-Blade", "SUNW.Sun-Fire"... + + # Replace "stable" with the actual boot image you want to boot. + filename "debian-installer/stable/sparc/boot.img"; +} diff --git a/dhcp3/dhcpd.d-i.host b/dhcp3/dhcpd.d-i.host new file mode 100644 index 0000000..5b394c1 --- /dev/null +++ b/dhcp3/dhcpd.d-i.host @@ -0,0 +1,13 @@ +# tftp server (if different from DHCP server) +# (maybe only one is needed - forgot which - the other being for NFS?) +#server-identifier 192.168.1.2; +#next-server 192.168.1.2; + +# Default netboot filename for (bootp, and other non-PXE clients) +filename "enter-your-default-di-netboot-imagename-here" + +# Preseed debian-installer from http://boot./d-i//./preseed.cfg +# (more info at http://hands.com/d-i/ ) +if substring (option vendor-class-identifier, 0, 3) = "d-i" { + filename "boot"; +} diff --git a/dhcp3/dhcpd.pxelinux.d-i b/dhcp3/dhcpd.pxelinux.d-i deleted file mode 100644 index 6c29580..0000000 --- a/dhcp3/dhcpd.pxelinux.d-i +++ /dev/null @@ -1,56 +0,0 @@ -# tftp server (if different from DHCP server) -# (maybe only one is needed - forgot which - the other being for NFS?) -#server-identifier 192.168.1.2; -#next-server 192.168.1.2; - -# Default netboot filename for (bootp, and other non-PXE clients) -filename "enter-your-default-di-netboot-imagename-here" - -class "pxeclient" { - match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; - - ## Only PXE clients, will get those options - ## (when they are _actually_ net-booting from their PXE agent). - - site-option-space "pxelinux"; - option pxelinux.magic f1:00:74:7e; - # Make path relative to tftp's root directory. - option pxelinux.pathprefix "/"; - #option pxelinux.reboottime 0; - - ## x86 (i386, amd64, x86_64, IA32) architectures. - if substring (option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000" { - #filename "debian-installer/etch/i386/pxelinux.0"; - #option pxelinux.configfile "debian-installer/etch/i386/pxelinux.cfg/default"; - - ## If you want to use the meta menu : - filename "debian-installer/pxelinux.0"; - option pxelinux.configfile "debian-installer/pxelinux.cfg/default"; - #or# option pxelinux.configfile "debian-installer/pxelinux.cfg/default.serial-9600"; - } - - ## IA64 (Itanium) - if substring (option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002" { - #filename "debian-installer/etch/ia64/elilo.efi"; - #option pxelinux.configfile "debian-installer/etch/ia64/elilo.conf"; - - ## If you want to use the overview menu : - filename "debian-installer/elilo.efi"; - option pxelinux.configfile "debian-installer/elilo.conf"; - } - - if exists dhcp-parameter-request-list { - # We Always send the PXELINUX options (values are in hexadecimal: 0xd0=208) - option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1,d2,d3); - } - -} - -class "sun" { - match if substring (option vendor-class-identifier, 0, 5) = "SUNW."; - # Needs improvements: some Sun have x86 CPUs !! - # uname -i : "SUNW.SPARCstation", "SUNW.Ultra", "SUNW.Sun-Blade", "SUNW.Sun-Fire"... - - # Replace "stable" with the actual boot image you want to boot. - filename "debian-installer/stable/sparc/boot.img"; -} -- cgit v1.2.3