#!ipxe
# ============================================================
# Lucx PXE - Debian 12 (Bookworm) Network Install
# Package: linux/debian12
# ============================================================

isset ${server} || set server 192.168.169.1
set base http://${server}/pxe/linux/debian12

echo Starting Debian 12 (Bookworm) Network Install...
echo Platform: ${platform}

# Debian installer kernel supports both BIOS and UEFI
kernel ${base}/vmlinuz || goto failed
initrd ${base}/initrd.gz || goto failed

# Kernel parameters
# vga=791 - 1024x768x16 VESA mode (higher resolution for installer)
#   Alternatives: vga=788 (800x600), vga=794 (1280x1024), vga=ask (choose at boot)
# console=tty0 - ensure output on first virtual console
# priority=critical - skip non-essential questions
# locale=en_US - English locale (use zh_CN for Chinese)
# keyboard-configuration/xkb-keymap=us - US keyboard
imgargs vmlinuz vga=791 console=tty0 priority=critical locale=en_US keyboard-configuration/xkb-keymap=us netcfg/get_hostname=debian

boot

:failed
echo !! Failed to load Debian 12 boot files
echo Check:
echo   ${base}/vmlinuz
echo   ${base}/initrd.gz
sleep 3
exit 1
