Bug#565160: Linux console garbled after experimental grub-pc boot
Jonathan Nieder
jrnieder at gmail.com
Wed Jan 20 15:34:55 UTC 2010
Robert Millan wrote:
> Would you please try attached patch and regenerate grub.cfg ?
>
> It can be applied directly to /etc/grub.d/10_linux
I made a small change to output the gfxpayload lines below each
menuentry line. It’s working great now. Thanks!
diff --git a/etc/grub.d/10_linux.in b/etc/grub.d/10_linux.in
index e7fd297..5c46de3 100755
--- a/etc/grub.d/10_linux
+++ b/etc/grub.d/10_linux
@@ -63,6 +63,11 @@ linux_entry ()
title="$(gettext "%s, with Linux %s")"
fi
printf "menuentry \"${title}\" ${CLASS} {\n" "${os}" "${version}"
+ if ! grep -qx "CONFIG_FB_VESA=y" /boot/config-${version} 2> /dev/null ; then
+ cat << EOF
+ set gfxpayload=text
+EOF
+ fi
save_default_entry | sed -e "s/^/\t/"
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
More information about the Pkg-grub-devel
mailing list