
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=5
set gfxpayload=keep     


menuentry 'UIS Live CentOS 7' {
    
    echo "Loading kernel  ..."
    linux  $HTTP_IMG_ROOT$/boot/vmlinuz-centos7-1511 rw rootfstype=tmpfs biosdevname=0 net.ifnames=0 UIS_DEV=$CLIENT_MAC_DASH_LOWER$ UIS_ADDR=$CLIENT_IP$/$SERVER_MASK_BIT$ UISMSERVER=5.5.5.5 UISMPORT=80 HTTP_URL=http://$SERVER_IP$:$HTTP_PORT$ rdinit=/init init=/init
    
    echo "Loading UIS mini system  ..."
    initrd $HTTP_IMG_ROOT$/boot/initrd-uis-centos7-1511.img
}

menuentry 'UIS Live Ubuntu 16.04' {
    
    echo "Loading kernel ..."
    linux  $HTTP_IMG_ROOT$/boot/vmlinuz-ubuntu-1604 rw rootfstype=tmpfs biosdevname=0 net.ifnames=0 UIS_DEV=$CLIENT_MAC_DASH_LOWER$ UIS_ADDR=$CLIENT_IP$/$SERVER_MASK_BIT$ UISMSERVER=5.5.5.5 UISMPORT=80 HTTP_URL=http://$SERVER_IP$:$HTTP_PORT$ rdinit=/init init=/init
	
    echo "Loading UIS mini system ..."
    initrd $HTTP_IMG_ROOT$/boot/initrd-uis-ubuntu-1604.img    
}
