#!gpxe
echo Trying to ping Gateway: ${netX/gateway}
ping --count 1 ${netX/gateway} || echo Ping to Gateway failed or ping command not available.
echo Trying to ping DNS: ${netX/dns}
ping --count 1 ${netX/dns} || echo Ping to DNS failed or ping command not available.


kernel http://ftp.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd=initrd.img interface=auto url=http://foreman.example.com/unattended/provision?static=1 ramdisk_size=10800 root=/dev/rd/0 rw auto BOOTIF=01-00-f0-54-1a-7e-e0 auto=true netcfg/disable_dhcp=true netcfg/get_ipaddress=192.168.42.42 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.42.1 netcfg/get_nameservers="192.168.42.2 192.168.42.3" netcfg/confirm_static=true locale=en_US hostname=snapshot-ipv4-static-deb10 domain=snap.example.com

initrd http://ftp.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz

imgstat
sleep 2
boot
