It's possible. But what I'm really trying to fathom is why SL has "gfxpayload=1024x768x16" in the kernel boot line at all. In the grub.cfg of the Gentoo installation on my main laptop, the gfxpayload commands for each kernel image are located elsewhere in the grub.cfg file, not in the linux boot line, if I specify GRUB_GFXPAYLOAD_LINUX=1024x768 in /etc/default/grub and run the grub2-mkconfig command. See the lines highlighted red in my grub.cfg listed below.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
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 {
insmod vbe
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 9db2f668-a682-4d6f-abc5-ed6f6c515b95
else
search --no-floppy --fs-uuid --set=root 9db2f668-a682-4d6f-abc5-ed6f6c515b95
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1024x768
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
insmod png
background_image -m stretch /grub2/mybackground.png
if sleep --interruptible 0 ; then
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.6.1-gentoo ...'
linux /kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/sda6 ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.6.1-gentoo
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.6.1-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.1-gentoo-advanced-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.6.1-gentoo ...'
linux /kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/sda6 ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.6.1-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.6.1-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.1-gentoo-recovery-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.6.1-gentoo ...'
linux /kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/sda6 ro single BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.6.1-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.6.0-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.0-gentoo-advanced-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.6.0-gentoo ...'
linux /kernel-genkernel-x86_64-3.6.0-gentoo root=/dev/sda6 ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.6.0-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.6.0-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.0-gentoo-recovery-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.6.0-gentoo ...'
linux /kernel-genkernel-x86_64-3.6.0-gentoo root=/dev/sda6 ro single BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.6.0-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.5.4-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.5.4-gentoo-advanced-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.5.4-gentoo ...'
linux /kernel-genkernel-x86_64-3.5.4-gentoo root=/dev/sda6 ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.5.4-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.5.4-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.5.4-gentoo-recovery-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.5.4-gentoo ...'
linux /kernel-genkernel-x86_64-3.5.4-gentoo root=/dev/sda6 ro single BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.5.4-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.3.5-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.3.5-gentoo-advanced-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.3.5-gentoo ...'
linux /kernel-genkernel-x86_64-3.3.5-gentoo root=/dev/sda6 ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.3.5-gentoo
}
menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.3.5-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.3.5-gentoo-recovery-9db2f668-a682-4d6f-abc5-ed6f6c515b95' {
load_video
set gfxpayload=1024x768
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 597e8c88-8d50-443f-ae19-f510844f5d4e
else
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
fi
echo 'Loading Linux x86_64-3.3.5-gentoo ...'
linux /kernel-genkernel-x86_64-3.3.5-gentoo root=/dev/sda6 ro single BOOT_IMAGE=/kernel-genkernel-x86_64-3.6.1-gentoo root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:Emergance console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.3.5-gentoo
}
}
### 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 ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-A6863E9F863E7043' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 A6863E9F863E7043
else
search --no-floppy --fs-uuid --set=root A6863E9F863E7043
fi
chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-A2243DA8243D7FF9' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 A2243DA8243D7FF9
else
search --no-floppy --fs-uuid --set=root A2243DA8243D7FF9
fi
chainloader +1
}
### 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 ###
If GRUB_GFXPAYLOAD_LINUX=1024x768 does not cause "gfxpayload=1024x768x16" to be inserted in the kernel boot line when grub2-mkconfig is run, I assume it was inserted in the kernel boot line because the SL Installer included it in GRUB_CMDLINE_LINUX in either /etc/default/grub or /etc/default/sabayon-grub (or whatever the SL file is called; I don't have access to a machine running SL for the next couple of weeks). Can you please have a look in /etc/default/grub and /etc/default/sabayon-grub to see if either specifies "gfxpayload=1024x768x16" to be in the kernel boot line, which would mean that the SL Installer did that, not GRUB 2. If GRUB 2 is indeed parsing a gfxpayload command that is not in the kernel boot line in my grub.cfg file and is passing the appropriate graphics mode to the loaded kernel (to vesafb?) then why does SL include it in the kernel boot line?