#!ipxe cpuid --ext 29 && set archstr 64-bit || set archstr 32-bit cpuid --ext 29 && set archl amd64 || set archl i386 set baseurl http://boot.fln.lt/ :start menu Please choose an operating system to boot item --gap -- ----- Installers ------------------------------------ item debian_7 Debian 7 installer (wheezy) [${archstr}] item debian_8 Debian 8 installer (jessie) [${archstr}] item debian_9 Debian 9 installer (stretch) [${archstr}] item ubuntu_14 Ubuntu 14.04 installer (trusty) [${archstr}] item ubuntu_16 Ubuntu 16.04 installer (xenial) [${archstr}] item centos_7 CentOS 7 installer [64-bit] item centos_8 CentOS 8 installer [64-bit] item kali_rolling Kali linux rolling [64-bit] item openbsd_c OpenBSD (current) [${archstr}] item custom_iso Custom ISO image item --gap -- ----- Live systems ---------------------------------- item sysrescue System Rescue CD 4.3.0 item grml Grml 2014.03 Live Linux for system administrators item --gap -- ----- Tools ----------------------------------------- item memtest Memtest86+ v4.20 (RAM testing software) item --gap -- ------ Other boot environments ---------------------- item web_litnet http://web.litnet.lt/boot.gpxe item --gap -- ----------------------------------------------------- item config Configure iPXE settings item hdd1 Boot from first hard drive (0x80) item shell Drop to iPXE shell item exit Exit iPXE (will boot from next device by BIOS order) choose kernel || goto cancel goto ${kernel} :cancel echo You cancelled the menu, dropping you to a shell goto shell :config config goto start :shell shell goto start :debian_7 set 210:string ${baseurl}debian/${archl}/wheezy/ chain ${210:string}pxelinux.0 goto start :debian_8 set 210:string ${baseurl}debian/${archl}/jessie/ chain ${210:string}pxelinux.0 goto start :debian_9 set 210:string ${baseurl}debian/${archl}/stretch/ chain ${210:string}pxelinux.0 goto start :ubuntu_14 set 210:string ${baseurl}ubuntu/${archl}/trusty/ chain ${210:string}pxelinux.0 goto start :ubuntu_16 set 210:string ${baseurl}ubuntu/${archl}/xenial/ chain ${210:string}pxelinux.0 goto start :centos_7 set repo http://mirror.centos.org/centos/7/os/x86_64/ #set repo http://mirror.litnet.lt/centos/7/os/x86_64/ #set repo http://ftp.is.co.za/mirror/centos/7/os/x86_64/ #set repo http://mirror.host.ag/centos/7/os/x86_64/ set cmdline ip=${ip} netmask=${netmask} gateway=${gateway} nameserver=${dns} echo -n Kernel args: ${} read cmdline initrd ${repo}images/pxeboot/initrd.img kernel ${repo}images/pxeboot/vmlinuz repo=${repo} ${cmdline} boot goto start :centos_8 set repo http://mirror.centos.org/centos/8/BaseOS/x86_64/os/ #set repo http://mirror.litnet.lt/centos/8/BaseOS/x86_64/os/ #set repo http://ftp.is.co.za/mirror/centos/8/BaseOS/x86_64/os/ #set repo http://mirror.host.ag/centos/8/BaseOS/x86_64/os/ set cmdline ip=${ip} netmask=${netmask} gateway=${gateway} nameserver=${dns} echo -n Kernel args: ${} read cmdline initrd ${repo}images/pxeboot/initrd.img kernel ${repo}images/pxeboot/vmlinuz repo=${repo} ${cmdline} boot goto start :kali_rolling set 210:string ${baseurl}kali/amd64/rolling/ chain ${210:string}pxelinux.0 goto start :openbsd_c initrd http://ftp.hostserver.de/pub/OpenBSD/snapshots/${archl}/cd57.iso kernel memdisk iso raw boot goto start :custom_iso set isourl http://ftp.hostserver.de/pub/OpenBSD/snapshots/amd64/cd57.iso echo -n URL: ${} read isourl initrd ${isourl} kernel memdisk iso raw boot goto start :sysrescue set 210:string ${baseurl}systemrescuecd/isolinux/ chain ${210:string}pxelinux.0 goto start :grml set 210:string ${baseurl}grml/boot/isolinux/ chain ${210:string}pxelinux.0 goto start :memtest chain misc/memtest goto start :web_litnet chain http://web.litnet.lt/boot.gpxe goto start :hdd1 sanboot --no-describe --drive 0x80 goto start :exit exit :end