Bug 748964 - grub2-mkconfig does not work with an unpopulated GRUB_PREFIX (i.e. before grub2-install) if using a serial console
Summary: grub2-mkconfig does not work with an unpopulated GRUB_PREFIX (i.e. before gru...
Keywords:
Status: CLOSED DUPLICATE of bug 736993
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F17Beta, F17BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2011-10-25 17:50 UTC by Adam Williamson
Modified: 2012-03-09 18:35 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-03-09 18:35:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
remove serial.mod check (1.01 KB, patch)
2012-03-08 21:49 UTC, Brian Lane
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 736993 0 unspecified CLOSED error install bootloader with serial interface install 2021-02-22 00:41:40 UTC

Internal Links: 736993

Description Adam Williamson 2011-10-25 17:50:29 UTC
This is a Rawhide 'clone' of https://bugzilla.redhat.com/show_bug.cgi?id=736993 to see if we can fix it better: an ugly hack is going into F16 anaconda to work around the bug for now.

grub2's /etc/grub.d/00_header has this code:

if [ "x$serial" = x1 ]; then
    if ! test -e ${GRUB_PREFIX}/serial.mod ; then
	echo "Serial terminal not available on this platform." >&2 ; exit 1
    fi

so if we're using a serial console and GRUB_PREFIX/serial.mod doesn't exist - which it won't, if grub2-install has never been run - mkconfig simply throws a hissy fit and exits. This means that anaconda bootloader installation fails in serial console installs as things stand, because grub2-mkconfig is run before grub2-install, as you'd think would make sense.

The ugly hack for F16 is to run grub2-install once before mkconfig and then again afterwards, but he thinks there should be a better 'real fix', hence this bug.

Comment 1 Brian Lane 2012-03-08 21:49:13 UTC
Created attachment 568753 [details]
remove serial.mod check

Comment 2 Adam Williamson 2012-03-09 18:35:06 UTC
736993 got re-opened for f17, so we can just consider this a real dupe now and follow up there.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

*** This bug has been marked as a duplicate of bug 736993 ***


Note You need to log in before you can comment on or make changes to this bug.