Skip to content

Instantly share code, notes, and snippets.

@radjah
Last active June 4, 2024 11:37
Show Gist options
  • Save radjah/b66c4bd0b893ba6b71b3c9952d9df036 to your computer and use it in GitHub Desktop.
Save radjah/b66c4bd0b893ba6b71b3c9952d9df036 to your computer and use it in GitHub Desktop.
Моё меню iPXE
#!ipxe
set http-server 192.168.1.30
set boot-url http://${http-server}/tftp
:start
menu iPXE boot menu
item winpe1064 Windows 10 PE 64-bit
item winpe1032 Windows 10 PE 32-bit
item sysresccd SystemRescueCd 6.0.3
item cruxng CRUX NG prealfa
item lsboot Lazesoft Live CD
item easeuspart EaseUS Partition Master
item hbcdpe Hiren’s BootCD PE x64
item
item iso-menu ISO boot menu
item
item shell Drop to iPXE shell
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}
:winpeload
dhcp
kernel ${boot-url}/wimboot pause gui
initrd ${boot-url}/${pearch}/media/Boot/BCD BCD
initrd ${boot-url}/${pearch}/media/Boot/boot.sdi boot.sdi
initrd ${boot-url}/${pearch}/media/sources/boot.wim boot.wim
imgstat
boot
:winpe1064
set pearch win10pe64
goto winpeload
:winpe1032
set pearch win10pe32
goto winpeload
:lsboot
set pearch lsboot
goto winpeload
:easeuspart
set pearch easeuspart
goto winpeload
:hbcdpe
set pearch hbcdpe
goto winpeload
:sysresccd
dhcp
kernel --name vmlinuz ${boot-url}/sysresccd/boot/x86_64/vmlinuz archisobasedir=tftp/sysresccd archiso_http_srv=http://${http-server}/ ip=:: checksum
initrd ${boot-url}/sysresccd/boot/intel_ucode.img
initrd ${boot-url}/sysresccd/boot/amd_ucode.img
initrd ${boot-url}/sysresccd/boot/x86_64/sysresccd.img
boot
:cruxng
dhcp
kernel --name vmlinuz ${boot-url}/cruxng/vmlinuz
initrd ${boot-url}/cruxng/initrd
boot
: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
:reboot
reboot
:exit
exit
############# ISO MENU #############
:iso-menu
menu iPXE ISO boot menu
item alr alr
item cruxngiso CRUX NG prealfa
item ghost Ghost 11
item hiren Hirens BootCD 15.2
item clonezilla CloneZilla Live x64
item kav KAV Rescue 10
item win81 Windows 8.1 Pro
item win7miniiso W7miniLIVE
item sysres systemrescuecd x86 5.2.2
item mhdd MHDD32 4.6
item acronis2016iso Acronis TrueImage 2016 Multilingual
item
item main-menu Return to main menu
choose --timeout ${submenu-timeout} --default ${submenu-default} selected || goto cancel
goto ${selected}
:bootiso
dhcp
initrd ${boot-url}/${iso-file}
chain memdisk iso raw
:alr
set iso-file alr.iso
goto bootiso
:cruxngiso
dhcp
set iso-file ngos.iso
goto bootiso
:ghost
set iso-file Ghost.11.Boot.CD.iso
goto bootiso
:hiren
set iso-file Hirens.BootCD.15.2.iso
dhcp
sanboot --no-describe -k ${boot-url}/${iso-file}
#goto bootiso
:clonezilla
set iso-file clonezilla-live-2.4.2-32-amd64.iso
goto bootiso
:kav
set iso-file kav_rescue_10.iso
goto bootiso
:win7miniiso
set iso-file W7miniLIVE.iso
goto bootiso
:win81
dhcp
sanboot --no-describe -k ${boot-url}/Windows8.1Pro.iso
#set iso-file Windows8.1Pro.iso
#goto bootiso
:sysres
set iso-file systemrescuecd-x86-5.2.2.iso
dhcp
sanboot --no-describe -k ${boot-url}/${iso-file}
#goto bootiso
:mhdd
set iso-file mhdd32ver4.6.iso
goto bootiso
:acronis2016iso
set iso-file AcronisTrueImage2016Multilingual.iso
goto bootiso
:main-menu
set submenu-timeout 0
clear submenu-default
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment