[RHEL7] Don't set GRUB_DISTRIBUTOR here.

Peter Jones pjones at redhat.com
Thu Sep 4 18:26:41 UTC 2014


If we /don't/ set GRUB_DISTRIBUTOR, we can just make 10_linux in grub
figure out what to say from /etc/os-release .

Related: rhbz#996794

Signed-off-by: Peter Jones <pjones at redhat.com>
---
 pyanaconda/bootloader.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 6995214..5a59ea2 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1493,7 +1493,6 @@ class GRUB2(GRUB):
         defaults_file = "%s%s" % (iutil.getSysroot(), self.defaults_file)
         defaults = open(defaults_file, "w+")
         defaults.write("GRUB_TIMEOUT=%d\n" % self.timeout)
-        defaults.write("GRUB_DISTRIBUTOR=\"$(sed 's, release .*$,,g' /etc/system-release)\"\n")
         defaults.write("GRUB_DEFAULT=saved\n")
         defaults.write("GRUB_DISABLE_SUBMENU=true\n")
         if self.console and self.has_serial_console:
-- 
1.9.3



More information about the anaconda-patches mailing list