117 lines
3.1 KiB
INI
117 lines
3.1 KiB
INI
set timeout=5
|
|
set default=0
|
|
set fallback=2
|
|
set pager=1
|
|
|
|
function load_video {
|
|
if [ x$feature_all_video_module = xy ]; then
|
|
insmod all_video
|
|
else
|
|
insmod efi_gop
|
|
insmod efi_uga
|
|
insmod ieee1275_fb
|
|
insmod vbe
|
|
insmod vga
|
|
insmod video_bochs
|
|
insmod video_cirrus
|
|
fi
|
|
}
|
|
|
|
if loadfont /boot/grub/unicode.pf2 ; then
|
|
set gfxmode=auto
|
|
load_video
|
|
insmod gfxterm
|
|
terminal_output gfxterm
|
|
insmod gettext
|
|
fi
|
|
|
|
if [ -f /boot/grub/default-splash.png ]; then
|
|
insmod png
|
|
background_image -m stretch /boot/grub/default-splash.png
|
|
fi
|
|
|
|
if [ x$bootlang = x ]; then
|
|
bootlang=en_US
|
|
export bootlang
|
|
fi
|
|
if [ x$bootkeymap = x ]; then
|
|
bootkeymap=us
|
|
export bootkeymap
|
|
fi
|
|
|
|
if [ x$acpi_opt = x ]; then
|
|
acpi_opt=''
|
|
export acpi_opt
|
|
fi
|
|
if [ x$modeset_opt = x ]; then
|
|
modeset_opt=''
|
|
export modeset_opt
|
|
fi
|
|
if [ x$noefi_opt = x ]; then
|
|
noefi_opt=''
|
|
export noefi_opt
|
|
fi
|
|
|
|
insmod part_gpt
|
|
|
|
menuentry "Start Sabayon __VERSION__ ServerBase" {
|
|
set gfxpayload=keep
|
|
echo "Language: ${bootlang}"
|
|
echo "Keyboard: ${bootkeymap}"
|
|
echo "Please wait..."
|
|
linux /boot/sabayon aufs init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs splash=verbose,theme:sabayon __KMS__ console=tty1 quiet console-setup/layoutcode=${bootkeymap} locale=${bootlang} ${modeset_opt} ${acpi_opt} --
|
|
initrd /boot/sabayon.igz
|
|
}
|
|
|
|
menuentry "Installation" {
|
|
set gfxpayload=keep
|
|
echo "Language: ${bootlang}"
|
|
echo "Keyboard: ${bootkeymap}"
|
|
echo "Please wait..."
|
|
linux /boot/sabayon aufs init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs splash=verbose,theme:sabayon __KMS__ console=tty1 quiet console-setup/layoutcode=${bootkeymap} installer-text locale=${bootlang} ${modeset_opt} ${acpi_opt} --
|
|
initrd /boot/sabayon.igz
|
|
}
|
|
|
|
submenu "Advanced Options" {
|
|
|
|
menuentry "Check disc for defects" {
|
|
set gfxpayload=keep
|
|
echo "Language: ${bootlang}"
|
|
echo "Keyboard: ${bootkeymap}"
|
|
echo "Please wait..."
|
|
linux /boot/sabayon aufs init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs splash=verbose,theme:sabayon __KMS__ console=tty1 quiet console-setup/layoutcode=${bootkeymap} locale=${bootlang} ${modeset_opt} ${acpi_opt} --
|
|
initrd /boot/sabayon.igz
|
|
}
|
|
|
|
menuentry "Disable Kernel Mode Settings (for AMD Radeon GPUs with fglrx)" {
|
|
echo "Disabling Kernel Mode Setting..."
|
|
set modeset_opt="nomodeset"
|
|
export modeset_opt
|
|
configfile /boot/grub/grub.cfg
|
|
}
|
|
|
|
menuentry "Disable ACPI" {
|
|
echo "Disabling ACPI..."
|
|
set acpi_opt="noacpi acpi=off"
|
|
export acpi_opt
|
|
configfile /boot/grub/grub.cfg
|
|
}
|
|
|
|
menuentry "Disable EFI" {
|
|
echo "Disabling EFI..."
|
|
set noefi_opt="noefi"
|
|
export noefi_opt
|
|
configfile /boot/grub/grub.cfg
|
|
}
|
|
|
|
menuentry "Debug mode" {
|
|
set gfxpayload=keep
|
|
echo "Language: ${bootlang}"
|
|
echo "Keyboard: ${bootkeymap}"
|
|
echo "Please wait..."
|
|
linux /boot/sabayon aufs init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs console=tty1 debug console-setup/layoutcode=${bootkeymap} locale=${bootlang} ${modeset_opt} ${acpi_opt} --
|
|
initrd /boot/sabayon.igz
|
|
}
|
|
|
|
}
|