
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  $HTTP_IMG_ROOT$/install/netboot/ubuntu-installer/amd64/linux $EXT_BOOT_OPT$ biosdevname=0 net.ifnames=0 auto=true priority=critical retriever/net/error=Retry netcfg/link_wait_timeout=120 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/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=UBUNTU$CLIENT_IP_B0$
	
	echo -en 'OK\nDownloading initrd ... '
	initrd $HTTP_IMG_ROOT$/install/netboot/ubuntu-installer/amd64/initrd.gz  $UDS_DRIVER_FMT$
	
	echo -en 'OK\nBooting ...'
	boot
}

