add init pxe cmd

This commit is contained in:
2026-05-05 02:12:33 +08:00
parent 9ec1cf4fdd
commit 2cc70998d1
24 changed files with 30461 additions and 101 deletions

21
var/pkgs/scripts/ipxe.sh Normal file
View File

@@ -0,0 +1,21 @@
#!ipxe
:main_menu
menu iPXE boot menu
item rockylinux Install Rockylinux 9.7
item local Boot from Local Disk
choose --default rockylinux --timeout 5000 selected || goto local
:rockylinux
echo Booting Rockylinux from networking
kernel http://172.16.9.254/linux/rockylinux/9.7/images/pxeboot/vmlinuz \
net.ifnames=0 biosdevname=0 inst.sshd \
inst.repo=http://172.16.9.254/linux/rockylinux/9.7 \
inst.ks=http://172.16.9.254/linux/ks/rhel.ks
initrd http://172.16.9.254/linux/rockylinux/9.7/images/pxeboot/initrd.img
boot
:local
exit