[PATCH] Don't emit "gfxterm" in grub2 configs (#821355)

Peter Jones pjones at redhat.com
Tue Feb 19 21:45:17 UTC 2013


This seems to break a pile of hardware, and we don't want a theme on
RHEL anyway, so we shouldn't use it there.

Resolves: rhbz#821355
---
 pyanaconda/bootloader.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index c24ccc3..000d493 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1349,6 +1349,7 @@ class GRUB2(GRUB):
     defaults_file = "/etc/default/grub"
     can_dual_boot = True
     can_update = True
+    terminal_type = "console"
 
     # requirements for boot devices
     stage2_device_types = ["partition", "mdarray", "lvmlv", "btrfs volume",
@@ -1442,6 +1443,8 @@ class GRUB2(GRUB):
         if self.console and self.console.startswith("ttyS"):
             defaults.write("GRUB_TERMINAL=\"serial console\"\n")
             defaults.write("GRUB_SERIAL_COMMAND=\"%s\"\n" % self.serial_command)
+        else:
+            defaults.write("GRUB_TERMINAL_OUTPUT=\"%s\"\n" % self.terminal_type)
 
         # this is going to cause problems for systems containing multiple
         # linux installations or even multiple boot entries with different
@@ -1903,6 +1906,7 @@ class IPSeriesGRUB2(GRUB2):
     # to present the disk as a bootable target.  If stage2_bootable is False, then the PReP partition
     # will be marked bootable. Confusing.
     stage2_bootable = False
+    terminal_type = "ofconsole"
 
     #
     # installation
-- 
1.8.1.2



More information about the anaconda-patches mailing list