[RHEL7] Don't set GRUB_DISTRIBUTOR here.

Vratislav Podzimek vpodzime at redhat.com
Fri Sep 5 07:13:03 UTC 2014


On Thu, 2014-09-04 at 14:26 -0400, Peter Jones wrote:
> 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:
This both look good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list