
set root=(http,$SERVER_IP$)
set pxe_http_port=$HTTP_PORT$
set prefix=(http,$SERVER_IP$)/uis_loader/grub2

uds_func_install_mods
uds_func_set_gfx

set timeout=0

menuentry uds {   
    
    echo -en 'Downloading kernel ... '
    linux virtualiso/extfile/$BOOT_LABEL$_linux $EXT_BOOT_OPT$ biosdevname=0 net.ifnames=0 auto=true priority=critical netcfg/choose_interface=auto BOOTIF=01-$CLIENT_MAC_DASH_LOWER$ preseed/url=http://$SERVER_IP$:$HTTP_PORT$/kickstart/01-$CLIENT_MAC_DASH_LOWER$.auto netcfg/link_wait_timeout=120 netcfg/use_dhcp=false netcfg/disable_dhcp=true netcfg/confirm_static=true netcfg/disable_autoconfig=true netcfg/get_ipaddress=$CLIENT_IP$ netcfg/get_netmask=$SERVER_MASK$ netcfg/get_gateway=$GATEWAY_IP$ netcfg/get_nameservers= netcfg/get_domain= netcfg/get_hostname=DEBIAN$CLIENT_IP_B0$

    echo -en 'OK\nDownloading initrd ... '
    initrd virtualiso/extfile/$BOOT_LABEL$_initrd.gz $UDS_DRIVER_FMT$

    echo -en 'OK\nBooting ...'
    boot
}

