Bug 1311321

Summary: grub2-efi does not honor serial directive
Product: Red Hat Enterprise Linux 7 Reporter: Alex Williamson <alex.williamson>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: alex.williamson, cww, mkolbas, release-test-team, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-22 15:36:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1420851, 1477664, 1571842    

Description Alex Williamson 2016-02-23 23:37:16 UTC
Description of problem:

I use identical grub configurations for UEFI installs of both RHEL7.2 and Fedora 23:

# cat /etc/default/grub 
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL="console serial"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX="intel_iommu=on iommu=pt console=ttyS0,115200n8"
GRUB_DISABLE_RECOVERY="true"
GRUB_DISABLE_OS_PROBER="true"

With fc23 this works as expected, I have grub I/O on both the graphics console and the serial port, with RHEL7.2 I only get output to the graphics console.

Version-Release number of selected component (if applicable):

Fedora:
grub2-efi-2.02-0.25.fc23.x86_64
grub2-tools-2.02-0.25.fc23.x86_64

RHEL7.2:
grub2-efi-2.02-0.34.el7_2.x86_64
grub2-tools-2.02-0.34.el7_2.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install RHEL7.2 to a UEFI system with standard ttyS0/0x3f8 serial port
2. Attempt to configure grub2 output on both graphics and serial
3.

Actual results:
I/O only on graphics

Expected results:
Mirrored I/O on both outputs

Additional info:
Rebuilding the fc23 src.rpm on RHEL7.2 and installing the resulting rpms resolves the issue.

Comment 4 Peter Jones 2018-06-04 14:20:28 UTC
I *think* this should be fixed in RHEL 7.5 please test it.  If it isn't fixed there, it definitely should be for 7.6.

Comment 5 Alex Williamson 2018-06-14 16:32:10 UTC
Seems to work with grub2-efi-x64-2.02-0.65.el7_4.2.x86_64