- Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
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 [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod zfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 5c8bfe4209adc5d1
else
search --no-floppy --fs-uuid --set=root 5c8bfe4209adc5d1
fi
font="/ROOT/sabayon@//usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1024x600
load_video
# vga= is deprecated, grub2 handles this just fine
# making grub2 res == linux fb res
set gfxpayload=keep
insmod gfxterm
set locale_dir=$prefix/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod zfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 5c8bfe4209adc5d1
else
search --no-floppy --fs-uuid --set=root 5c8bfe4209adc5d1
fi
insmod jpeg
background_image -m stretch /ROOT/sabayon@//boot/grub/nu13.jpg
if sleep --interruptible 0 ; then
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5c8bfe4209adc5d1' {
load_video
insmod gzio
insmod part_gpt
insmod zfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 5c8bfe4209adc5d1
else
search --no-floppy --fs-uuid --set=root 5c8bfe4209adc5d1
fi
echo 'Caricamento Linux x86_64-3.6.0-sabayon...'
linux /ROOT/sabayon@//boot/kernel-genkernel-x86_64-3.6.0-sabayon ro dozfs acpi_osi=Linux init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 quiet dokeymap keymap=it root=UUID=fa62b399-afe7-4bbf-b961-ece94e894d46
echo 'Caricamento ramdisk iniziale...'
initrd /ROOT/sabayon@//boot/initramfs-genkernel-x86_64-3.6.0-sabayon
}
submenu 'Opzioni avanzate per Sabayon GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5c8bfe4209adc5d1' {
menuentry 'Sabayon GNU/Linux, con Linux x86_64-3.6.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.0-sabayon-advanced-5c8bfe4209adc5d1' {
load_video
insmod gzio
insmod part_gpt
insmod zfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 5c8bfe4209adc5d1
else
search --no-floppy --fs-uuid --set=root 5c8bfe4209adc5d1
fi
echo 'Caricamento Linux x86_64-3.6.0-sabayon...'
linux /ROOT/sabayon@//boot/kernel-genkernel-x86_64-3.6.0-sabayon ro dozfs acpi_osi=Linux init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 quiet dokeymap keymap=it root=UUID=fa62b399-afe7-4bbf-b961-ece94e894d46
echo 'Caricamento ramdisk iniziale...'
initrd /ROOT/sabayon@//boot/initramfs-genkernel-x86_64-3.6.0-sabayon
}
menuentry 'Sabayon GNU/Linux, con Linux x86_64-3.6.0-sabayon (modalità ripristino)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.0-sabayon-recovery-5c8bfe4209adc5d1' {
load_video
insmod gzio
insmod part_gpt
insmod zfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 5c8bfe4209adc5d1
else
search --no-floppy --fs-uuid --set=root 5c8bfe4209adc5d1
fi
echo 'Caricamento Linux x86_64-3.6.0-sabayon...'
linux /ROOT/sabayon@//boot/kernel-genkernel-x86_64-3.6.0-sabayon ro single init_opts=single dozfs acpi_osi=Linux init=/linuxrc splash=verbose,theme:sabayon video=vesafb:ywrap,mtrr:3 quiet dokeymap keymap=it root=UUID=fa62b399-afe7-4bbf-b961-ece94e894d46
echo 'Caricamento ramdisk iniziale...'
initrd /ROOT/sabayon@//boot/initramfs-genkernel-x86_64-3.6.0-sabayon
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
(notice that I've customized a bit my GRUB setup, but that shouldn't matter in the scope of this discussion)
The only line that mentions gfxpayload is:
# vga= is deprecated, grub2 handles this just fine
# making grub2 res == linux fb res
set gfxpayload=keep
Which, through a bit of grepping in /etc/grub.d (and as noted by grub.cfg itself), is generated by:
/etc/grub.d/00_header
line: 182
The VGA line could be inserted because it appears to be more reliable than the gfxpayload option on some systems, and it is compatible with the way the syslinux bootloader (used in the live medium) specifies video modes, but I am not 100% sure of this.
Probably changing the way the installer works could be more clumsy with the gfxpayload option, I imagine a new variable should be added to sabayon-grub with special attention to set it only if it isn't already set (unless the inclusion of the file is moved on top of /etc/default/grub, but it would be equally troublesome), also retrieving its value in live mode reliably could be more painful (since an actual resolution is required rather than a VESA mode), but again, I'm not entirely sure about this.

