2021-09-24 06:09:59 +00:00
|
|
|
# Timeout for menu
|
|
|
|
set timeout=60
|
|
|
|
|
|
|
|
# Default boot entry
|
|
|
|
set default=boot-bios
|
|
|
|
|
2021-10-14 16:00:49 +00:00
|
|
|
# Visual
|
|
|
|
GRUB_GFXMODE=1024x768x32
|
|
|
|
GRUB_GFXPAYLOAD_LINUX=keep
|
|
|
|
## Menu Colours
|
2021-09-24 06:09:59 +00:00
|
|
|
set menu_color_normal=white/black
|
|
|
|
set menu_color_highlight=white/green
|
|
|
|
|
|
|
|
menuentry 'Continue to normal BIOS boot' --id boot-bios --class exit {
|
|
|
|
exit
|
|
|
|
}
|
2021-10-14 16:00:49 +00:00
|
|
|
submenu "Harvester ->" {
|
|
|
|
configfile harvester.cfg
|
|
|
|
}
|
2021-10-19 09:54:30 +00:00
|
|
|
submenu "TLU Harvester Cluster->" {
|
|
|
|
configfile tlu-harvester.cfg
|
|
|
|
}
|
2021-09-24 06:09:59 +00:00
|
|
|
|
|
|
|
submenu "openSUSE ->" {
|
|
|
|
|
|
|
|
menuentry 'Linux diskless' --class os {
|
|
|
|
|
|
|
|
insmod efi_gop
|
|
|
|
insmod efi_uga
|
|
|
|
|
|
|
|
# set server from option 66 (tftp-server-name) if not exist, use next_server
|
|
|
|
if ! net_get_dhcp_option net_default_server ${net_default_interface} 66 string; then
|
|
|
|
echo ' using next_server option instead.'
|
|
|
|
set net_default_server=${pxe_default_server}
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo '------------------------------------------------------------------------------'
|
|
|
|
echo -n 'Interface: '; net_ls_addr
|
|
|
|
echo "HTTP Server: ${net_default_server}"
|
|
|
|
echo '------------------------------------------------------------------------------'
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo ' mm'
|
|
|
|
echo ' /^( )^\'
|
|
|
|
echo ' \,(..),/'
|
|
|
|
echo ' V~~V'
|
|
|
|
echo
|
|
|
|
echo "Loading Linux from http://${net_default_server}/vmlinz ..."
|
|
|
|
linux (http)/vmlinuz console=tty1 console=ttyS0,9600n8 selinux=0 bond=bond0:eno1,eno1d1:mode=active-backup root=live:http://${net_default_server}/cc.squash rootovl=1 ro rd.live.image
|
|
|
|
echo "Loading initial ramdisk from http://${net_default_server}/initramfs ..."
|
|
|
|
initrd (http)/initramfs
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
menuentry "Reboot" --class exit {
|
|
|
|
reboot
|
|
|
|
}
|
|
|
|
|
|
|
|
menuentry "Power-off" --class exit {
|
|
|
|
halt
|
|
|
|
}
|