gfxpayload.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. From e2d5bf1bc6aaaabeba538c1ca94ea8601e4e1474 Mon Sep 17 00:00:00 2001
  2. From: Mike Gilbert <floppym@gentoo.org>
  3. Date: Thu, 16 Oct 2014 23:43:51 -0400
  4. Subject: [PATCH] 10_linux: Default gfxpayload=keep only when booting using efi
  5. vesafb seems to be unreliable when using BIOS compat mode.
  6. ---
  7. util/grub.d/10_linux.in | 4 +++-
  8. 1 file changed, 3 insertions(+), 1 deletion(-)
  9. diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
  10. index d2e2a8f..a54b888 100644
  11. --- a/util/grub.d/10_linux.in
  12. +++ b/util/grub.d/10_linux.in
  13. @@ -104,7 +104,9 @@ linux_entry ()
  14. echo " load_video" | sed "s/^/$submenu_indentation/"
  15. if grep -qx "CONFIG_FB_EFI=y" "${config}" 2> /dev/null \
  16. && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" "${config}" 2> /dev/null; then
  17. - echo " set gfxpayload=keep" | sed "s/^/$submenu_indentation/"
  18. + echo ' if [ "x$grub_platform" = xefi ]; then' | sed "s/^/$submenu_indentation/"
  19. + echo " set gfxpayload=keep" | sed "s/^/$submenu_indentation/"
  20. + echo ' fi' | sed "s/^/$submenu_indentation/"
  21. fi
  22. else
  23. if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
  24. --
  25. 2.7.2