#!ipxe # Related to https://bugs.gentoo.org/396467 # How to use: # * Download undionly.kpxe or ipxe.usb from http://boot.ipxe.org # * replace any pxelinux.0 with undionly.kpxe, or even better configure dhcpd to point to undionly.kpxe # * setup http server hosting this and the below files (http is faster then tftp) # * PXE boot a machine (or use usb image), and you should see iPXE start and a prompt for pressing Ctrl-B - do so # * dhcp - to get ip # * chain http://gentoo.ipxe.se/boot.ipxe - (this file) to boot # please use discussions on https://github.com/NiKiZe/Gentoo-iPXE for questions # dnsmasq.conf minimal sample, see README for more details # dhcp-match=set:ipxe-ok,175,19 # dhcp-boot=tag:!ipxe-ok,undionly.kpxe # dhcp-boot=tag:ipxe-ok,http://gentoo.ipxe.se/boot.ipxe # other files below will be loaded relative to this scripts path # allow for external keymap setting isset ${keymap} || set keymap dokeymap # allow for external cmdline options isset ${cmdline} || set cmdline vga=791 # http://ipxe.org/cmd/kernel kernel gentoo ${keymap} looptype=squashfs loop=/image.squashfs cdroot net.ifnames=0 ${cmdline} # http://ipxe.org/cmd/initrd initrd gentoo.igz # Download the squashfs image, iPXE adds CPIO header so that it is appended to the initramfs above # this makes it exist in the booted system # the second argument /image.squashfs is name of file inside cpio initrd image.squashfs /image.squashfs # Let's see what we got imgstat # boot the currently selected image (it was selected by the kernel line) boot