#!ipxe imgfree set httpbase http://stuff.digriz.org.uk kernel http://http.debian.net/debian/dists/squeeze/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd ${httpbase}/initrd set preseed ${httpbase}/preseed.txt isset ${net0/ip} && set nic 0 || set nic 1 # how do you want the console set up # * testing : console=ttyS0,115200n8 console=tty0 # * production (ipmi): console=tty0 console=ttyS2,115200n8 set console console=ttyS0,115200n8 console=tty0 echo -n hostname: && read hostname set domain example.com echo -n domain: && read domain imgargs linux ${console} quiet auto-install/enable=true debconf/priority=critical debian-installer/framebuffer=false preseed/url=${preseed} netcfg/choose_interface=eth${nic} netcfg/get_hostname=${hostname} netcfg/get_domain=${domain} netcfg/get_ipaddress=${net${nic}/ip} netcfg/get_netmask=${net${nic}/netmask} netcfg/get_gateway=${net${nic}/gateway} netcfg/get_nameservers=${dns} netcfg/disable_dhcp=true passwd/root-password=${uuid} passwd/root-password-again=${uuid} network-console/password=${uuid} network-console/password-again=${uuid}