
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=10

set kernel=$PXE_IMG_PATH$/isolinux/vmlinuz
set cmdline='$EXT_BOOT_OPT$  bootlabel=$BOOT_LABEL$ biosdevname=0 net.ifnames=0 BOOTIF=01-$CLIENT_MAC_DASH_LOWER$ serverip=$SERVER_IP$ http_port=$HTTP_PORT$ driver_path=$DRIVER_PATH$ imageurl=$HTTP_IMG_URL$ ip=$CLIENT_IP$ netmask=$SERVER_MASK$ gateway=$GATEWAY_IP$ installmethod=net'

if [ $BIOD_MODE$ = UEFI ] ; then
    LINUXCMD=linuxefi
    INITRDCMD=initrdefi
else
    LINUXCMD=linux
    INITRDCMD=initrd
fi

menuentry 'Install Tencent tlinux release 1.2 (Final)' {        
	$LINUXCMD   $kernel $cmdline osname=tlinux-64bit-v1.2.20160630
    $INITRDCMD  $PXE_IMG_PATH$/isolinux/initrd.img  $UDS_DRIVER_FMT$
}

menuentry 'Install Tencent tlinux release 2.2 (Final)' {        
	$LINUXCMD   $kernel $cmdline osname=tlinux-64bit-v2.2.20160719
    $INITRDCMD  $PXE_IMG_PATH$/isolinux/initrd.img  $UDS_DRIVER_FMT$
}

menuentry 'Install tlinux_SUSE10' {        
	$LINUXCMD   $kernel $cmdline osname=tlinux-sles10sp2-64bit-1.0.21.20160523
    $INITRDCMD  $PXE_IMG_PATH$/isolinux/initrd.img  $UDS_DRIVER_FMT$
}

menuentry 'Install Tencent tlinux release 1.2 (tkernel2)' {        
	$LINUXCMD   $kernel $cmdline  osname=tlinux-tkernel2-64bit-v1.2.20160719
    $INITRDCMD  $PXE_IMG_PATH$/isolinux/initrd.img  $UDS_DRIVER_FMT$
}


