# Super Grub Disk Main Configuration file
# Copyright (C) 2009 Adrian Gibanel Lopez.
#
# Super Grub Disk is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Super Grub Disk is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
# if [ "$disable_gfxterm" != true ]; then
# if [ "$with_gfx" != true ]; then
# echo " Boot Grub2 graphics mode"
# echo " Press 'Shift' - boot Grub2 text mode "
# sleep -v -i 1
# fi
# else
# echo " Boot Grub2 text mode"
# fi
# if [ "$disable_gfxterm" != true ]; then
# echo " Boot Grub2 graphics mode"
# echo " Press 'Shift' - boot Grub2 text mode "
# sleep -v -i 1
# else
# echo " Boot Grub2 text mode"
#fi
##text mode
########################################################
# Configure gfxterm, but allow it to be disabled by holding shift during boot.
# gfxterm is required to display non-ASCII translations.
loadfont "$prefix/sgd2/unifont.pf2"
if keystatus --shift; then
disable_gfxterm=true
# export disable_gfxterm is needed so that the setting will persist even after
# a "configfile /boot/grub/main.cfg" (which is what language_select.cfg does after
# you select a new language)
export disable_gfxterm
# The following strings are intentionally not made translateable.
echo "It has been detected that the shift key was held down. Because of this Multi"
echo "will use VGA text mode rather than gfxterm. This will cause display problems."
echo
echo
#
### with_gfx=true
# echo text mode with_gfx=0 ---- $with_gfx
#
echo " text mode "
echo "Press escape to continue to the main menu"
#
sleep --interruptible 9999
fi
##############################################
##end text mode
##graph. mode
##############################################
if [ "$disable_gfxterm" != true ]; then
# with_gfx=1
# echo graph mode with_gfx=1 ---- $with_gfx
#
echo " graph mode "
echo " Press 'Shift' - boot Grub2 text mode "
#
lang=ru
#
insmod all_video
insmod png
insmod vbe
insmod vga
insmod gfxterm
#
gfxmode=800x600
# gfxmode=640x480
# gfxmode=1680x1050,1280x768,1024x600,800x600
# gfxmode=1280x768
# gfxmode=1950x1080,1680x1050,1280x1024,1280x768,1024x768,800x600,640x480
terminal_output gfxterm
insmod gfxmenu
#
set grub2win_parm=ascrollcir
#set grub2win_parm=acircle
#set grub2win_parm=ascrollbar
#set grub2win_parm=aprogress
#
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
#set theme=$prefix/themes/grub2win/theme.acircle.txt
#set theme=$prefix/themes/grub2win/theme.ascrollbar.txt
#set theme=$prefix/themes/grub2win/theme.aprogress.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
fi
##########################################
##end graph. mode
# Export the variables so that they persist when loading a new menu.
export menu_color_normal
export menu_color_highlight
export menu_color_background
export bwcolor
function set_multi_colors {
if [ "$bwcolor" = "yes" ]; then
menu_color_normal=white/brown
menu_color_highlight=white/blue
menu_color_background=yellow/cyan
else
# menu_color_normal=light-gray/black
# menu_color_highlight=light-gray/green
# menu_color_background=black/white
# menu_color_normal=blue/light-gray
# menu_color_highlight=light-blue/yellow
# menu_color_background=yellow/white
#
menu_color_normal=white/blue
#
menu_color_highlight=yellow/green
# menu_color_highlight=yellow/red
#
menu_color_background=black/white
fi
}
set_multi_colors
#
insmod part_acorn
insmod part_amiga
insmod part_apple
insmod part_bsd
insmod part_gpt
insmod part_msdos
insmod part_sun
insmod part_sunpc
# Prepare environment variables, needed mostly for update_paths()
export prefix_device prefix_path prefix_uuid
regexp -s prefix_device '^\((.*)\)/' "$prefix"
regexp -s prefix_path '^\(.*\)/(.*)$' "$prefix"
probe --fs-uuid --set=prefix_uuid "$prefix_device"
# Define a function for updating paths when device names change.
# search.mod is required for update-paths, and must be loaded before device
# names change because $prefix will be invalid.
insmod search
function update_paths {
search --fs-uuid --set=prefix_device $prefix_uuid
prefix="($prefix_device)/$prefix_path"
}
# Timeout for menu
#
set timeout=50
# Set default boot entry as Entry number 2 (counting from 0)
if [ "$disable_gfxterm" != true ]; then
set default=1
else
set default=2
fi
## start-user-section ********************************************************
if [ "$disable_gfxterm" = true ]; then
# Get the version number for this Super GRUB2 Disk release
source "${prefix}/sgd2/version.cfg"
menuentry "====---==- Super Grub2 Disk $sgrub_version + Grub4Dos + Syslinux -==---====" {
# Set pager=1 so ls output doesn't scroll past the top of the screen
# but restore $pager to its previous value when finished
set oldpager="${pager}"
set pager=1
cat ${prefix}/sgd2/AUTHORS
cat ${prefix}/sgd2/COPYING
set pager="${oldpager}"
unset oldpager
echo $"Press escape to return to the main menu"
sleep --interruptible 9999
}
fi
# Grub Invaders - Just for fun..... try it
menuentry "Grub Invaders" --class invaders {
set root=(hd0,msdos1)
multiboot ${prefix}/invaders.exec
}
############################################
#
#####start submenu AvtoStart ISO
submenu $"AvtoStart ISO ..." --class cdrom {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
#####start menu AvtoStart ISO ##
####start submenu
submenu $"Detect loop bootable ISO ..." --class sgd {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
# Load autoiso script as a new menu
menuentry $"Detect loop bootable ISO (in /boot-isos )" --class sgd {
#
configfile "${prefix}/sgd2/autoiso.cfg"
}
# Load autoiso script as a new menu
menuentry $"Detect loop bootable ISO (in /boot-iso )" --class sgd {
#
configfile "${prefix}/sgd2/autoiso1.cfg"
}
# Load autoiso script as a new menu
menuentry $"Detect loop bootable ISO (in /_ISO/BOOT )" --class sgd {
#
configfile "${prefix}/sgd2/autoiso3.cfg"
}
# Load autoiso script as a new menu
menuentry $"Detect loop bootable ISO (in /ISO, /iso)" --class sgd {
#
configfile "${prefix}/sgd2/autoiso2.cfg"
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu
#
#
if [ "$disable_gfxterm" = true ]; then
menuentry "Grub4DOS start avtoboot ISO (txt mode)" --hotkey=g --class grub4dos {
set root=(hd0,1)
#
linux16 /grub4dos/grub.exe --config-file=/grub4dos/g4d_txt/avto_iso.lst
}
else
#
menuentry "Grub4DOS start avtoboot ISO (graph mode)" --hotkey=g --class grub4dos {
set root=(hd0,1)
#
linux16 /grub4dos/grub.exe --config-file=/grub4dos/g4d_graph/avto_iso.lst
}
fi
####start submenu
submenu $"Detect any Operating System ..." --class sgd {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
# Load osdetect script as a new menu
menuentry $"Detect any Operating System" --class sgd {
configfile "${prefix}/sgd2/osdetect.cfg"
}
# Load cfgdetect script as a new menu
menuentry $"Detect any GRUB2 configuration file (grub.cfg)" --class sgd {
configfile "${prefix}/sgd2/cfgdetect.cfg"
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu
#
menuentry $"Return to main menu" {
configfile "${prefix}/grub.cfg"
}
###
}
#####end submenu AvtoStart ISO
###################################
####start submenu backup
submenu $"BackUp ..." --class diskcopy {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
####start menu backup
####start submenu Paragon 10 free
if [ -f (hd0,1)/soft/backup/paragon10/vmlinuzp ];then
submenu $"Paragon 10 free ..." --class paragon {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
menuentry "Paragon 10 free in normal mode" --class paragon {
set gfxpayload=keep
echo Loading the Paragon 10 kernel
#
linux (hd0,1)/soft/backup/paragon10/vmlinuzp vga=0x314 language=ru_RU.UTF-8 medialable=
echo Loading the Paragon 10 initrd
initrd (hd0,1)/soft/backup/paragon10/initrd
sleep -v -i 3
}
menuentry "Paragon 10 free in safe mode" --class paragon {
set gfxpayload=keep
echo Loading the Paragon 10 kernel
#
linux (hd0,1)/soft/backup/paragon10/vmlinuzp mode=fbdev vga=788 language=ru_RU.UTF-8 medialable=
echo Loading the Paragon 10 initrd
initrd (hd0,1)/soft/backup/paragon10/initrd
sleep -v -i 3
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu Paragon 10
fi
####start submenu Paragon 2013 free
if [ -f (hd0,1)/soft/backup/paragon2013/vmlinuzp ];then
submenu $"Paragon 2013 free ..." --class paragon {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
menuentry "Paragon 2013 free in normal mode " --class paragon {
# set gfxpayload=keep
set gfxpayload=1024x768
echo Loading the Paragon 2013 kernel
linux (hd0,1)/soft/backup/paragon2013/vmlinuzp splash=silent vga=0x314 language=ru_RU.UTF-8 medialable=
echo Loading the Paragon 2013 initrd
initrd (hd0,1)/soft/backup/paragon2013/initrd.gz
sleep -v -i 3
}
menuentry "Paragon 2013 free in safe mode " --class paragon {
# set gfxpayload=keep
set gfxpayload=1024x768
echo Loading the Paragon 2013 kernel
linux (hd0,1)/soft/backup/paragon2013/vmlinuzp splash=silent mode=fbdev vga=788 language=ru_RU.UTF-8 medialable=
echo Loading the Paragon 2013 initrd
initrd (hd0,1)/soft/backup/paragon2013/initrd.gz
sleep -v -i 3
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu Paragon 2013
fi
####start submenu Paragon 2014 free
if [ -f (hd0,1)/soft/backup/paragon2014/vmlinuzp ];then
submenu $"Paragon 2014 free ..." --class paragon {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
menuentry "Paragon 2014 free in normal mode" --class paragon {
# set gfxpayload=keep
set gfxpayload=1024x768
echo Loading the Paragon 2014 kernel
linux (hd0,1)/soft/backup/paragon2014/vmlinuzp splash=silent vga=0x314 language=ru_RU.UTF-8 medialable=
echo Loading the Paragon 2014 initrd
initrd (hd0,1)/soft/backup/paragon2014/initrd.gz
sleep -v -i 3
}
menuentry "Start Paragon-RCD(2014) in normal mode" --class paragon {
set gfxpayload=keep
echo 'Loading linux..'
linux (hd0,1)/soft/backup/paragon2014/vmlinuzp ramdisk_size=512000 ramdisk_blocksize=4096 vga=0x314 language=ru_RU.UTF-8 medialable= splash=silent panic=1
echo 'Loading initrd...'
initrd (hd0,1)/soft/backup/paragon2014/initrd.gz
}
menuentry "Start Paragon-RCD(2014) in safe mode" --class paragon {
set gfxpayload=keep
echo 'Loading linux...'
linux (hd0,1)/soft/backup/paragon2014/vmlinuzp ramdisk_size=512000 ramdisk_blocksize=4096 splash=silent ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processsor.max+cstate=1 vga=0x314 language=ru_RU.UTF-8 medialable= panic=1 nomodeset x11failsafe
echo 'Loading initrd...'
initrd (hd0,1)/soft/backup/paragon2014/initrd.gz
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu Paragon 2014
fi
####start submenu Redo BackUp
if [ -f (hd0,1)/soft/backup/redo/bzImage ];then
submenu $"Redo BackUp ..." --class bg_redo {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
#
menuentry "Redo BackUp Standard Video Mode" --class bg_redo {
# set gfxpayload=keep
set gfxpayload=1024x768
echo Loading the redo kernel
linux (hd0,1)/soft/backup/redo/bzImage lang=en kmap=us mode=vesa vga=788
echo Loading the redo initrd
initrd (hd0,1)/soft/backup/redo/core
}
#
menuentry "Redo BackUp Safe Video Mode" --class bg_redo {
# set gfxpayload=keep
#
set gfxpayload=800x600
echo Loading the redo kernel
linux (hd0,1)/soft/backup/redo/bzImage lang=en kmap=us mode=fbdev vga=788
echo Loading the redo initrd
initrd (hd0,1)/soft/backup/redo/core
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu Redo BackUp
fi
####start submenu Parted Magic 2014.11.19
if [ -f (hd0,1)/soft/linux/pmagic/bzimage ];then
submenu $"Parted Magic 2014.11.19 ..." --class diskcopy {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
menuentry "Parted Magic 2014.11.19. Default 32 En." --class partedmagic {
echo Loading the Parted Magic kernel
linux (hd0,1)/soft/linux/pmagic/bzimage edd=on directory=/soft/linux vga=normal boot=live livemedia eject=no vmalloc=464MiB nomodeset
echo Loading the Parted Magic initrd
initrd (hd0,1)/soft/linux/pmagic/initrd.img
}
menuentry "Parted Magic 2014.11.19. Default 32 Ru." --class partedmagic {
insmod vbe
insmod ntfs
insmod chain
insmod biosdisk
insmod ext2
insmod part_msdos
echo Loading the Parted Magic kernel
linux (hd0,1)/soft/linux/pmagic/bzimage edd=on directory=/soft/linux vga=normal boot=live livemedia eject=no vmalloc=464MiB nomodeset keymap=en ru_Ru
echo Loading the Parted Magic initrd
initrd (hd0,1)/soft/linux/pmagic/initrd.img
}
menuentry "Parted Magic 2014.11.19. Default 32 Ram. En." --class partedmagic {
echo Loading the Parted Magic kernel
linux (hd0,1)/soft/linux/pmagic/bzimage edd=on directory=/soft/linux vga=normal vmalloc=464MiB keymap=en en_EN
echo Loading the Parted Magic initrd
initrd (hd0,1)/soft/linux/pmagic/initrd.img
}
menuentry "Parted Magic 2014.11.19. Default 32 Ram. Ru." --class partedmagic {
insmod ntfs
echo Loading the Parted Magic kernel
linux (hd0,1)/soft/linux/pmagic/bzimage edd=on directory=/soft/linux vga=normal vmalloc=464MiB keymap=en ru_Ru
echo Loading the Parted Magic initrd
initrd (hd0,1)/soft/linux/pmagic/initrd.img
}
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu Parted Magic 2014.11.19
fi
#
#
if [ -f (hd0,1)/pmagic/bzimage ];then
menuentry "Parted Magic 2013.02.28. Default settings" --class partedmagic {
#
echo Loading the Parted Magic kernel
#
linux (hd0,1)/pmagic/bzimage edd=on directory=/soft/linux vga=normal boot=live eject=no vmalloc=464MiB nomodeset
#
#
echo Loading the Parted Magic initrd
#
initrd (hd0,1)/pmagic/initrd.img
#
#
}
fi
####start menu Parted Magic 2015.03.06
if [ -f (hd0,1)/soft/linux/pmagic/modules/pmagic_2015_03_06.sqfs ];then
menuentry $"Parted Magic 2015.03.06 ..." --class partedmagic {
configfile "${prefix}/grub_cfg/pmagic.cfg"
}
fi
#end menu
#
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu backup
###########################################
############start submenu Loaders ...
###
submenu $"Loaders ..." --class linux {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
#####start submenu Super Grub2 v2.00
#http://www.supergrubdisk.org/
#http://developer.berlios.de/project/showfiles.php?group_id=10921
#SG2D (Floppy, CD & USB in one)
#
submenu $"Super Grub2 disk v2.00..." --class sgd {
#
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
#
set locale_dir=$prefix/locale
#
set icondir=$prefix/themes/icons
#####start menu Super Grub2 disk v2.00
menuentry "Super Grub2 v2.00 start main.cfg sgd2" --class sgd {
echo Loading the main Grub sg2 cfg
configfile "${prefix}/sgd2/main.cfg"
sleep -v -i 2
}
#
if [ -f (hd0,1)/soft/sgd/sgd2.gz ];then
menuentry "Super Grub2 v2.00 start file sgd2.gz" --class sgd {
echo Loading the kernel
linux16 (hd0,1)/soft/system/memdisk
echo Loading the initrd
initrd16 (hd0,1)/soft/sgd/sgd2.gz
sleep -v -i 2
}
fi
#
#
if [ -f (hd0,1)/soft/sgd/sgd2.gz ];then
menuentry "Super Grub2 v2.00 start file sgd2.gz from loop" --class sgd {
loopback loop (hd0,1)/soft/sgd/sgd2.gz
set root=(loop)
configfile /boot/grub/main.cfg
sleep -v -i 2
}
fi
#
#
if [ -f (hd0,1)/soft/sgd/sgd2v1.gz ];then
menuentry "Super Grub2 v2.00 start file sgd2v1.gz" --class sgd {
echo Loading the kernel
linux16 (hd0,1)/soft/system/memdisk bigraw
echo Loading the initrd
initrd16 (hd0,1)/soft/sgd/sgd2v1.gz
sleep -v -i 2
}
fi
#
#
if [ -f (hd0,1)/soft/sgd/sgd2v4.gz ];then
menuentry "Super Grub2 v2.00 start file sgd2v4.gz" --class sgd {
echo Loading the kernel
linux16 (hd0,1)/soft/system/memdisk bigraw
echo Loading the initrd
initrd16 (hd0,1)/soft/sgd/sgd2v4.gz
sleep -v -i 2
}
fi
#
#
if [ -f (hd0,1)/soft/sgd/sgd2v4.iso ];then
menuentry "Super Grub2 v2.00 start file sgd2v4.iso" --class sgd {
echo Loading the kernel
linux16 (hd0,1)/soft/system/memdisk bigraw
echo Loading the initrd
initrd16 (hd0,1)/soft/sgd/sgd2v4.iso
sleep -v -i 2
}
fi
#
#
if [ -f (hd0,1)/soft/sgd/sgd.gz ];then
menuentry "Super Grub1 v1.0 start file sgd.gz" --class sgd {
echo Loading the kernel
linux16 (hd0,1)/soft/system/memdisk bigraw
echo Loading the initrd
initrd16 (hd0,1)/soft/sgd/sgd.gz
sleep -v -i 2
}
fi
#
#
if [ -f (hd0,1)/boot-isos/super_grub2v200.iso ];then
menuentry "Super Grub2 v2.00 ISO start cfg" --class sgd {
loopback loop (hd0,1)/boot-isos/super_grub2v200.iso
set root=(loop)
configfile /boot/grub/main.cfg
sleep -v -i 2
}
menuentry "Super Grub2 v2.00 ISO start iso" --class sgd {
search --set -f (hd0,1)/boot-isos/super_grub2v200.iso
linux16 (hd0,1)/soft/system/memdisk
initrd16 (hd0,1)/boot-isos/super_grub2v200.iso
}
fi
#
#end menu
#
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
####end submenu loader
###########################################
###start submenu Grub4Dos
#
#http://grub4dos.sourceforge.net/
#http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial
submenu $"Grub4Dos ..." --class linux {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
#
#####start menu Grub4DOS ##
if [ "$disable_gfxterm" = true ]; then
menuentry "Grub4DOS (start file grub.exe txt mode)" --hotkey=g --class grub4dos {
set root=(hd0,1)
linux16 /grub4dos/grub.exe --config-file=/grub4dos/menu.lst
}
else
#
menuentry "Grub4DOS (start file grub.exe (graph mode))" --hotkey=g --class grub4dos {
if keystatus --ctrl; then
set root=(hd0,1)
linux16 /grub4dos/grub.exe --config-file=/grub4dos/menu.lst
else
set root=(hd0,1)
linux16 /grub4dos/grub.exe --config-file=/menu.lst
fi
}
fi
###
#
menuentry "Grub4DOS (start grldr)" --class grub4dos {
#
insmod ntfs
insmod fat
insmod ext2
search --set -f /grub4dos/grldr
ntldr /grub4dos/grldr
#
}
#
#####end menu Grub4DOS
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
###end submenu Grub4Dos
###start submenu Syslinux
submenu $"Syslinux ..." --class syslinux-100 {
set theme=$prefix/themes/grub2win/theme.ascrollcir.txt
set locale_dir=$prefix/locale
set icondir=$prefix/themes/icons
#####start menu Syslinux ##
#
#menuentry "Syslinux redir" --class syslinux-100 {
#search --set -f /syslinux/redir.img
# linux16 /soft/system/memdisk
# initrd16 /syslinux/redir.img
#}
#
#http://syslinux.zytor.com
#
#
#
#
if [ -f (hd0,1)/syslinux/ldlinux.sys ];then
menuentry "Syslinux (/syslinux/ldlinux_sys)" --class syslinux-100 {
#
search --set -f "/syslinux/ldlinux.sys"
#search --set -f "/syslinux/ldlinux.bin"
#
drivemap -s (hd0) $root
#
chainloader +1
#
}
fi
#
if [ -f (hd0,1)/ldlinux.sys ];then
menuentry "Syslinux (/ldlinux_sys)" --class syslinux-100 {
#
search --set -f "/ldlinux.sys"
#search --set -f "/syslinux/ldlinux.bin"
#
drivemap -s (hd0) $root
#
chainloader +1
#
}
fi
#
#Autre solution pour chainer Syslinux via une copie du mbr
#dd if=/dev/sd?1 of=/media/multisystem/boot/img/syslinux.mbr bs=512 count=1
#
#menuentry "Syslinux mbr" --class syslinux-100 {
#search --set -f "/syslinux/syslinux.mbr"
#search --set -f "/syslinux/mbr.bin"
#drivemap -s (hd0) $root
#chainloader /syslinux/syslinux.mbr
#chainloader /syslinux/mbr.bin
#}
#
#####end menu Syslinux
#
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
###end submenu Syslinux
menuentry $"Return to main menu (Esc)" {
configfile "${prefix}/grub.cfg"
}
}
######end submenu Loaders
###########################################
#########start other
menuentry "Reboot" --class reboot {
insmod reboot
reboot
}
#
menuentry "ShutDown PC" --class quit {
halt
}
## end-user-section ********************************************************
############################################
Есть submenu ,разные темы,работа в граф. или текстовом режимах, различные способы перехода в syslinux,grub4dos и обратно в Grub2 , запуска различных утилит, подключение конфиг. файлов, автозапуск ISO с помощью SuperGrub2Disk v2.02 и Grub4Dos и тд.
Это дело пока находиться "полировке конфиг. файла", 1 файл grub.cfg ~60kb ,надо его поделить на несколько функц. блоков.