[rhel6-branch 1/1] Always write splashimage to grub.cfg on UEFI (#853844)
bcl
installerbot-noreply at redhat.com
Fri Jul 31 00:35:58 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
UEFI needs splashimage in the config file to initialize the console.
Resolves: rhbz#853844
---
booty/x86.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/booty/x86.py b/booty/x86.py
index 19ba316..06e25e7 100644
--- a/booty/x86.py
+++ b/booty/x86.py
@@ -319,8 +319,10 @@ def writeGrubConf(self, instRoot, bootDev, rootDev, defaultDev, kernelList,
f.write("serial --unit=%s --speed=%s\n" %(unit, speed))
f.write("terminal --timeout=%s serial console\n" % (self.timeout or 5))
- else:
+
+ if self.serial != 1 or iutil.isEfi():
# we only want splashimage if they're not using a serial console
+ # or if this is a UEFI system
if os.access("%s/boot/grub/splash.xpm.gz" %(instRoot,), os.R_OK):
f.write('splashimage=%s%sgrub/splash.xpm.gz\n'
% (self.grubbyPartitionName(bootDevs[0]), cfPath))
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/2aabe9455780ecef2985b6f55ff6d686223fb560
More information about the anaconda-patches
mailing list