Sunday, December 28, 2014

Generic ipxe boot

Talked about using ipxe before, so I will not repeat all that here. Found this generic ipxe boot data file. You may need to do some adjustments. You can also cut just what you need to use.



#!ipxe

# To access this file via http use following redirection:
# http://preseed.panticz.de/ipxe/menu.netinstall.ipxe

# choose cpu architecture
cpuid --ext 29 && set arch amd64 || set arch i386

menu NetInstall
item --gap NetInstall Ubuntu Preseed (user: ubuntu, password: t00r):
item install_ubuntu_14.10           Ubuntu 14.10 Utopic
item install_ubuntu_14.10_autopart  Ubuntu 14.10 Utopic autopart
item install_ubuntu_14.04           Ubuntu 14.04 LTS Trusty
item install_ubuntu_14.04_autopart  Ubuntu 14.04 LTS Trusty autopart
item install_ubuntu_14.04_forcepae  Ubuntu 14.04 LTS Trusty (32 bit)
item install_ubuntu_12.04           Ubuntu 12.04.3 LTS Precise
item
item --gap NetInstall Debian
item install_debian_6_not_preseed   Debian 6 Squeeze
item install_debian_7_not_preseed   Debian 7 Wheezy
item install_debian_7_backports     Debian 7 Wheezy (wheezy-backports kernel)
item
item --gap NetInstall Debian Preseed (user: root, password: t00r):
item install_debian_8               Debian 8 Jessie (unstable)
item install_debian_7               Debian 7 Wheezy
item install_debian_7_autopart      Debian 7 Wheezy autopart
item install_debian_7_backports_autopart      Debian 7 Wheezy backports autopart
item install_debian_6               Debian 6 Squeeze
item install_debian_6_autopart      Debian 6 Squeeze autopart
item
item --gap NetInstall Fedora:  
item install_fedora_20              Fedora 20
item install_fedora_19              Fedora 19
item
item --gap NetInstall CentOS:  
item install_centos_7.0             CentOS 7.0
item install_centos_7.0_kickstart   CentOS 7.0 (kickstart)
item
item --gap NetInstall Arch Linux:  
item install_arch_linux             Arch Linux Netboot
item
item --gap Other
item install_ipfire                 IpFire
item back   < Back to main menu
choose target && goto ${target}

:back
chain ${mainmenu}


#
# Ubuntu
#
:install_ubuntu_14.10
set release utopic
goto install_ubuntu

:install_ubuntu_14.10_autopart
set autopart autopart
set release utopic
goto install_ubuntu

:install_ubuntu_14.04
set release trusty
goto install_ubuntu

:install_ubuntu_14.04_autopart
set autopart autopart
set release trusty
goto install_ubuntu

:install_ubuntu_12.04
set release precise
goto install_ubuntu

:install_ubuntu_14.04_forcepae
set release trusty
set arch i386
set options forcepae
goto install_ubuntu

:install_ubuntu
initrd http://de.archive.ubuntu.com/ubuntu/dists/${release}/\
  main/installer-${arch}/current/images/netboot/ubuntu-installer/${arch}/initrd.gz\
  chain http://de.archive.ubuntu.com/ubuntu/dists/${release}/main/installer-${arch}/\
  current/images/netboot/ubuntu-installer/${arch}/linux url=http://preseed.panticz.de/\
  preseed/ubuntu-minimal.seed auto=true netcfg/choose_interface=${net0/mac} \
  locale=en_US.UTF-8 priority=critical biosdevname=0 ${autopart} ${options}

#
# Debian
#
:install_debian_6_autopart
set autopart autopart
goto install_debian_6

:install_debian_6
set release squeeze
goto install_debian

:install_debian_7_autopart
set autopart autopart
goto install_debian_7

:install_debian_7_backports_autopart
set autopart autopart
goto install_debian_backports

:install_debian_7
set release wheezy
goto install_debian

:install_debian_8
set release unstable
goto install_debian

:install_debian_6_not_preseed
set release squeeze
initrd http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch}\
  /current/images/netboot/debian-installer/${arch}/initrd.gz
chain http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch} \
  /current/images/netboot/debian-installer/${arch}/linux

:install_debian_7_not_preseed
set release wheezy
initrd http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch} \
  /current/images/netboot/debian-installer/${arch}/initrd.gz
chain http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch} \
  /current/images/netboot/debian-installer/${arch}/linux

:install_debian_7_backports
set release unstable
initrd http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch} \
  /current/images/netboot/debian-installer/${arch}/initrd.gz
chain http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch}  \
 /current/images/netboot/debian-installer/${arch}/linux url=http://preseed.panticz.de/preseed  \
 /debian-wheezy-backports.seed

:install_debian
initrd http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch}
 /current/images/netboot/debian-installer/${arch}/initrd.gz
chain http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch}\
 /current/images/netboot/debian-installer/${arch}/linux url=http://preseed.panticz.de\
 /preseed/debian-minimal.seed auto=true netcfg/choose_interface=${net0/mac} priority=critical \
 ${autopart}

:install_debian_backports
set release unstable
initrd http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch}/current/ \
 images/netboot/debian-installer/${arch}/initrd.gz
chain http://ftp2.de.debian.org/debian/dists/${release}/main/installer-${arch}/current/ \
 images/netboot/debian-installer/${arch}/linux url=http://preseed.panticz.de/preseed/ \
 debian-wheezy-backports-minimal-preseed.seed auto=true netcfg/choose_interface=${net0/mac}\ 
 locale=en_US.UTF-8 priority=critical ${autopart}


#
# Fedora
#
# TODO: auto 32/64 bit
:install_fedora_20
set release 20
goto install_fedora

:install_fedora_19
set release 19
goto install_fedora

:install_fedora
initrd http://ftp.uni-kl.de/pub/linux/fedora/linux/releases/${release}/Fedora/x86_64 \
  /os/images/pxeboot/initrd.img
chain http://ftp.uni-kl.de/pub/linux/fedora/linux/releases/${release}/Fedora/x86_64 \
 /os/images/pxeboot/vmlinuz inst.repo=http://ftp.uni-kl.de/pub/linux/fedora/linux/ \
 releases/${release}/Fedora/x86_64/os/



#
# CentOS
#
# TODO: auto 32/64 bit
:install_centos_7.0
initrd http://mirror.netcologne.de/centos/7/os/x86_64/isolinux/initrd.img
chain http://mirror.netcologne.de/centos/7/os/x86_64/isolinux/vmlinuz

:install_centos_7.0_kickstart
initrd http://mirror.netcologne.de/centos/7/os/x86_64/isolinux/initrd.img
chain http://mirror.netcologne.de/centos/7/os/x86_64/isolinux/vmlinuz ksdevice=link \ 
  ks=http://preseed.panticz.de/kickstart/centos7-minimal.cfg

#
# Arch Linux
#
:install_arch_linux
cpuid --ext 29 && set arch x86_64 || set arch i686
initrd http://mirror.netcologne.de/archlinux/iso/latest/arch/boot/${arch}/archiso.img
chain http://mirror.netcologne.de/archlinux/iso/latest/arch/boot/${arch}/vmlinuz \
 autopartarchiso_http_srv=http://mirror.netcologne.de/archlinux/iso/latest/ \ 
 archisobasedir=arch checksum=y ip=dhcp

#
# IpFire
#
:install_ipfire
chain http://boot.ipfire.org/menu.gpxe

No comments:

Post a Comment