From 842cb67bd6e47449631f62567074a8fd25ef63dc Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 10 Sep 2012 20:47:52 +0000 Subject: [PATCH] Correct RHEL grub buggy behavior when detected on EFI installs git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13751 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/post.rh.common | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/share/xcat/install/scripts/post.rh.common b/xCAT-server/share/xcat/install/scripts/post.rh.common index 9340cf6d9..f34fe6e5d 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rh.common +++ b/xCAT-server/share/xcat/install/scripts/post.rh.common @@ -34,3 +34,9 @@ fi export HOSTNAME=$(host $IP 2>/dev/null | awk '{print $5}' | awk -F. '{print $1}') hostname $HOSTNAME +if [ -f /boot/efi/efi/redhat/grub.conf ]; then #RedHat bug, grub.efi corrupts console unless we are careful... + sed -i s/^terminal.*// /boot/efi/efi/redhat/grub.conf + bootpart=$(sed -e 's/#.*//' /boot/efi/efi/redhat/grub.conf |grep root|grep -v kernel|head -n 1|awk '{print $2}') + bootpart="${bootpart%\\n}" + sed -i s!^serial.*!splashimage=$bootpart/boot/grub/splash.xpm.gz! /boot/efi/efi/redhat/grub.conf +fi