grub2/debian/patches/gfxpayload_keep_default.patch
Colin Watson 8b243fd371 Remove numbering from patch files. The order is now explicit in a quilt
series file, and renumbering from time to time is tedious.
2010-07-02 12:43:03 +01:00

39 lines
1.4 KiB
Diff

Description: Disable gfxpayload=keep by default
Setting gfxpayload=keep has been known to cause efifb to be inappropriately
enabled. In any case, with the current Linux kernel the result of this
option is that early kernelspace will be unable to print anything to the
console, so (for example) if boot fails and you end up dumped to an
initramfs prompt, you won't be able to see anything on the screen. As such
it shouldn't be enabled by default in Debian, no matter what kernel options
are enabled.
.
gfxpayload=keep is a good idea but rather ahead of its time ...
Author: Colin Watson <cjwatson@debian.org>
Bug-Debian: http://bugs.debian.org/567245
Forwarded: no
Last-Update: 2010-03-09
Index: b/util/grub.d/10_linux.in
===================================================================
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -67,17 +67,7 @@
# Use ELILO's generic "efifb" when it's known to be available.
# FIXME: We need an interface to select vesafb in case efifb can't be used.
- if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
- cat << EOF
- load_video
-EOF
- if grep -qx "CONFIG_FB_EFI=y" /boot/config-${version} 2> /dev/null \
- && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" /boot/config-${version} 2> /dev/null; then
- cat << EOF
- set gfxpayload=keep
-EOF
- fi
- else
+ if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ]; then
cat << EOF
set gfxpayload=$GRUB_GFXPAYLOAD_LINUX
EOF