Intial commit
This commit is contained in:
114
iPXE/LDS.ipxe
Normal file
114
iPXE/LDS.ipxe
Normal file
@@ -0,0 +1,114 @@
|
||||
#!ipxe
|
||||
|
||||
#Vars
|
||||
#Linux Installer menu selector
|
||||
#Use "LinuxInstallers-LID.ipxe" for stored boot images (using LDS-UpdateBootImages)
|
||||
#Or Use "LinuxInstallers.ipxe" for online boot images
|
||||
set LDSIMenu LinuxInstallers.ipxe
|
||||
|
||||
###################### MAIN MENU ####################################
|
||||
|
||||
:start
|
||||
menu Linux Depolyment server - Main
|
||||
item MenuLinuxTools Tools -->
|
||||
item MenuLinuxInstallers Installers -->
|
||||
#item MenuLinuxCustomInstallers Custom Installers -->
|
||||
|
||||
|
||||
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
|
||||
set menu-timeout 0
|
||||
goto ${selected}
|
||||
|
||||
:cancel
|
||||
echo You cancelled the menu, dropping you to a shell
|
||||
|
||||
:shell
|
||||
echo Type 'exit' to get the back to the menu
|
||||
shell
|
||||
set menu-timeout 0
|
||||
set submenu-timeout 0
|
||||
goto startinitrd
|
||||
|
||||
:failed
|
||||
echo Booting failed, dropping to shell
|
||||
goto shell
|
||||
|
||||
|
||||
#Linux Installer menu
|
||||
:MenuLinuxInstallers
|
||||
chain ${LDSIMenu}
|
||||
boot
|
||||
|
||||
###################### Linux Custom Installer menu ####################################
|
||||
:MenuLinuxCustomInstallers
|
||||
menu Linux menu Linux Depolyment server - Custom installers
|
||||
item CustomInstallPlaceHolder Place Holder
|
||||
|
||||
item
|
||||
item start Back to the main menu <--
|
||||
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
|
||||
set menu-timeout 0
|
||||
goto ${selected}
|
||||
|
||||
:CustomInstallPlaceHolder
|
||||
kernel
|
||||
initrd
|
||||
boot
|
||||
|
||||
###################### Linux Tool menu ####################################
|
||||
:MenuLinuxTools
|
||||
menu Linux Depolyment server - Tools
|
||||
#item CloneZilla CloneZilla
|
||||
#item GParted GParted
|
||||
#item SystemRescueCD SystemRescueCD x64
|
||||
#item PartedMagic32 Parted Magic x86
|
||||
#item PartedMagic64 Parted Magic x64
|
||||
#item AcronisTrueImage32 Acronis True Image x86
|
||||
#item AcronisTrueImage64 Acronis True Image x64
|
||||
|
||||
item
|
||||
item start Back to the main menu <--
|
||||
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
|
||||
set menu-timeout 0
|
||||
goto ${selected}
|
||||
|
||||
:CloneZilla
|
||||
kernel http://${next-server}/Tools/CloneZilla/vmlinuz initrd=initrd.img boot=live username=user union=overlay config components noswap edd=on nomodeset nodmraid locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt fetch=http://${next-server}/Tools/CloneZilla/filesystem.squashfs
|
||||
initrd http://${next-server}/Tools/CloneZilla/initrd.img
|
||||
boot
|
||||
|
||||
:GParted
|
||||
kernel http://${next-server}/Tools/Gparted/vmlinuz initrd=initrd.img boot=live config components union=overlay username=user noswap noeject fetch=http://${next-server}/Tools/Gparted/filesystem.squashfs
|
||||
initrd http://${next-server}/Tools/Gparted/initrd.img
|
||||
boot
|
||||
|
||||
:PartedMagic64
|
||||
kernel http://${next-server}/Tools/PartedMagic/bzImage64 initrd=initrd.img initrd=PMAGIC_2013_08_01.SQFS.cgz edd=off load_ramdisk=1 prompt_ramdisk=0 rw loglevel=9 max_loop=256
|
||||
initrd http://${next-server}/Tools/PartedMagic/initrd.img
|
||||
initrd http://${next-server}/Tools/PartedMagic/PMAGIC_2013_08_01.SQFS.cgz
|
||||
boot
|
||||
|
||||
:PartedMagic32
|
||||
kernel http://${next-server}/Tools/PartedMagic/bzImage initrd=initrd.img initrd=PMAGIC_2013_08_01.SQFS.cgz edd=off load_ramdisk=1 prompt_ramdisk=0 rw loglevel=9 max_loop=256
|
||||
initrd http://${next-server}/Tools/PartedMagic/initrd.img
|
||||
initrd http://${next-server}/Tools/PartedMagic/PMAGIC_2013_08_01.SQFS.cgz
|
||||
boot
|
||||
|
||||
:AcronisTrueImage64
|
||||
kernel http://${next-server}/Tools/AcronisTrueImage/dat10.dat force_modules=usbhid quiet
|
||||
initrd http://${next-server}/Tools/AcronisTrueImage/dat11.dat
|
||||
initrd http://${next-server}/Tools/AcronisTrueImage/dat12.dat
|
||||
boot
|
||||
|
||||
:AcronisTrueImage32
|
||||
kernel http://${next-server}/Tools/AcronisTrueImage/dat2.dat force_modules=usbhid quiet
|
||||
initrd http://${next-server}/Tools/AcronisTrueImage/dat3.dat
|
||||
initrd http://${next-server}/Tools/AcronisTrueImage/dat4.dat
|
||||
boot
|
||||
|
||||
:SystemRescueCD
|
||||
kernel http://${next-server}/Tools/SystemRescueCD/vmlinuz archisobasedir=Tools/SystemRescueCD ip=dhcp archiso_http_srv=http://${next-server}/
|
||||
initrd http://${next-server}/Tools/SystemRescueCD/intel_ucode.img
|
||||
initrd http://${next-server}/Tools/SystemRescueCD/amd_ucode.img
|
||||
initrd http://${next-server}/Tools/SystemRescueCD/sysresccd.img
|
||||
boot
|
||||
102
iPXE/LinuxInstallers.ipxe
Normal file
102
iPXE/LinuxInstallers.ipxe
Normal file
@@ -0,0 +1,102 @@
|
||||
#!ipxe
|
||||
|
||||
#Vars
|
||||
set DebianVer bullseye
|
||||
set CentosStreamVer 9-stream
|
||||
set AlmalVer 9
|
||||
set RockyVer 8
|
||||
set FedoraVer 36
|
||||
set AlpineVer latest-stable
|
||||
|
||||
#LDS Linux install menu using external images
|
||||
|
||||
:start
|
||||
menu Linux Depolyment server - Installers
|
||||
#Variable items
|
||||
|
||||
item Debian Install Debian ${DebianVer} x64
|
||||
item CentosStream Install CentOS ${CentosStreamVer} x64
|
||||
item AlmaLinux Install Alma ${AlmalVer} x64
|
||||
item RockyLinux Install Rocky ${RockyVer} x64
|
||||
item OpenSuseLeap Install OpenSuse Leap x64
|
||||
item Fedora Install Fedora ${FedoraVer} x64
|
||||
item Alpine Install Alpine ${AlpineVer} x64
|
||||
|
||||
#Legacy static items
|
||||
#item Debian10 Install Debian 10 x64
|
||||
#item Ubuntu1804 Install Ubuntu 18.04 x64
|
||||
#item Ubuntu2004 Install Ubuntu 20.04 x64
|
||||
#item Centos7 Install CentOS 7 x64
|
||||
#item Centos8Stream Install CentOS 8-Stream x64
|
||||
|
||||
item
|
||||
item --key x LDSMain Back to the main menu <--
|
||||
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
|
||||
set menu-timeout 0
|
||||
goto ${selected}
|
||||
|
||||
#Load LDS Main menu
|
||||
:LDSMain
|
||||
chain LDS.ipxe
|
||||
boot
|
||||
|
||||
:Debian
|
||||
kernel http://ftp.nl.debian.org/debian/dists/${DebianVer}/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd=initrd.gz
|
||||
initrd http://ftp.nl.debian.org/debian/dists/${DebianVer}/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
|
||||
boot
|
||||
|
||||
:CentosStream
|
||||
kernel http://mirror.stream.centos.org/${CentosStreamVer}/BaseOS/x86_64/os/images/pxeboot/vmlinuz initrd=initrd.img inst.stage2=http://mirror.stream.centos.org/${CentosStreamVer}/BaseOS/x86_64/os/ devfs=nomount ip=dhcp
|
||||
initrd http://mirror.stream.centos.org/${CentosStreamVer}/BaseOS/x86_64/os/images/pxeboot/initrd.img
|
||||
boot
|
||||
|
||||
:AlmaLinux
|
||||
kernel http://repo.almalinux.org/almalinux/${AlmalVer}/BaseOS/x86_64/os/images/pxeboot/vmlinuz initrd=initrd.img inst.stage2=http://repo.almalinux.org/almalinux/${AlmalVer}/BaseOS/x86_64/os/ devfs=nomount ip=dhcp
|
||||
initrd http://repo.almalinux.org/almalinux/${AlmalVer}/BaseOS/x86_64/os/images/pxeboot/initrd.img
|
||||
boot
|
||||
|
||||
:RockyLinux
|
||||
kernel http://download.rockylinux.org/pub/rocky/${RockyVer}/BaseOS/x86_64/os/images/pxeboot/vmlinuz initrd=initrd.img inst.stage2=http://download.rockylinux.org/pub/rocky/${RockyVer}/BaseOS/x86_64/os/ devfs=nomount ip=dhcp
|
||||
initrd http://download.rockylinux.org/pub/rocky/${RockyVer}/BaseOS/x86_64/os/images/pxeboot/initrd.img
|
||||
boot
|
||||
|
||||
:OpenSuseLeap
|
||||
kernel http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/boot/x86_64/loader/linux initrd=initrd showopts install=http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/
|
||||
initrd http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/boot/x86_64/loader/initrd
|
||||
boot
|
||||
|
||||
:Fedora
|
||||
kernel http://download.fedoraproject.org/pub/fedora/linux/releases/${FedoraVer}/Everything/x86_64/os/images/pxeboot/vmlinuz initrd=initrd.img inst.stage2=https://download.fedoraproject.org/pub/fedora/linux/releases/${FedoraVer}/Everything/x86_64/os/ devfs=nomount ip=dhcp
|
||||
initrd http://download.fedoraproject.org/pub/fedora/linux/releases/${FedoraVer}/Everything/x86_64/os/images/pxeboot/initrd.img
|
||||
boot
|
||||
|
||||
:Alpine
|
||||
kernel http://dl-4.alpinelinux.org/alpine/${AlpineVer}/releases/x86_64/netboot/vmlinuz-lts modules=loop,squashfs quiet alpine_repo=http://dl-4.alpinelinux.org/alpine/${AlpineVer}/main modloop=http://dl-4.alpinelinux.org/alpine/${AlpineVer}/releases/x86_64/netboot/modloop-lts initrd=initramfs-lts
|
||||
initrd http://dl-4.alpinelinux.org/alpine/${AlpineVer}/releases/x86_64/netboot/initramfs-lts
|
||||
boot
|
||||
|
||||
#Legacy static items
|
||||
:Debian10
|
||||
kernel http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd=initrd.gz
|
||||
initrd http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
|
||||
boot
|
||||
|
||||
:Ubuntu1804
|
||||
kernel http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux initrd=initrd.gz
|
||||
initrd http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
|
||||
boot
|
||||
|
||||
:Ubuntu2004
|
||||
kernel http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/linux initrd=initrd.gz
|
||||
initrd http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/initrd.gz
|
||||
boot
|
||||
|
||||
:Centos7
|
||||
kernel http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/vmlinuz initrd=initrd.img method=http://mirror.centos.org/centos/7/os/x86_64/ devfs=nomount ip=dhcp
|
||||
initrd http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/initrd.img
|
||||
boot
|
||||
|
||||
:Centos8Stream
|
||||
kernel http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/images/pxeboot/vmlinuz initrd=initrd.img method=http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/ devfs=nomount ip=dhcp
|
||||
initrd http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/images/pxeboot/initrd.img
|
||||
boot
|
||||
54
iPXE/boot.ipxe
Normal file
54
iPXE/boot.ipxe
Normal file
@@ -0,0 +1,54 @@
|
||||
#!ipxe
|
||||
|
||||
# Some menu defaults
|
||||
set menu-timeout 50000
|
||||
set submenu-timeout ${menu-timeout}
|
||||
isset ${menu-default} || set menu-default exit
|
||||
|
||||
:start
|
||||
menu iPXE boot menu for
|
||||
item --gap -- ------------------------- Boot server selector ------------------------------
|
||||
item --key l LDS Boot to LDS
|
||||
item --key W WDS Boot to WDS
|
||||
item --gap -- ------------------------- Advanced options -------------------------------
|
||||
item shell Drop to iPXE shell
|
||||
item poweroff Shutdown computer
|
||||
item reboot Reboot computer
|
||||
item
|
||||
item --key x exit Exit iPXE and continue BIOS boot
|
||||
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
|
||||
set menu-timeout 0
|
||||
goto ${selected}
|
||||
|
||||
:cancel
|
||||
echo You cancelled the menu, dropping you to a shell
|
||||
|
||||
:shell
|
||||
echo Type 'exit' to get the back to the menu
|
||||
shell
|
||||
set menu-timeout 0
|
||||
set submenu-timeout 0
|
||||
goto start
|
||||
|
||||
:failed
|
||||
echo Booting failed, dropping to shell
|
||||
goto shell
|
||||
|
||||
:poweroff
|
||||
poweroff
|
||||
|
||||
:reboot
|
||||
reboot
|
||||
|
||||
:exit
|
||||
exit
|
||||
|
||||
#Load LDS
|
||||
:LDS
|
||||
chain LDS.ipxe
|
||||
boot
|
||||
|
||||
#Set DHCP user class to "wds" and start networkboot
|
||||
:WDS
|
||||
set user-class wds
|
||||
autoboot || goto failed
|
||||
BIN
iPXE/ipxe.efi
Normal file
BIN
iPXE/ipxe.efi
Normal file
Binary file not shown.
BIN
iPXE/undionly.kpxe
Normal file
BIN
iPXE/undionly.kpxe
Normal file
Binary file not shown.
Reference in New Issue
Block a user