
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$/casper/vmlinuz $EXT_BOOT_OPT$ biosdevname=0 net.ifnames=0 boot=casper auto=true priority=critical  ip=$CLIENT_IP$:$SERVER_IP$:$GATEWAY_IP$:$SERVER_MASK$:UBUNTU$CLIENT_IP_B0$ netcfg/link_wait_timeout=120 netcfg/disable_autoconfig=true netcfg/choose_interface=auto BOOTIF=01-$CLIENT_MAC_DASH_LOWER$ netcfg/use_dhcp=false netcfg/disable_dhcp=true netcfg/confirm_static=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$ url=http://$SERVER_IP$:$HTTP_PORT$/kickstart/01-$CLIENT_MAC_DASH_LOWER$.auto automatic-ubiquity noprompt netboot=nfs nfsroot=$NFS_ROOT$ panic=2 hung_task_panic=1 hung_task_timeout_secs=30 quiet splash --
    
    echo -en 'OK\nDownloading initrd ... '
    initrd  $HTTP_IMG_ROOT$/casper/initrd.lz

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