installed GRUB menu does not appear on term used for install

Bug #1743884 reported by dann frazier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
dann frazier
Xenial
Confirmed
Undecided
dann frazier
Artful
Won't Fix
Undecided
dann frazier
Bionic
Confirmed
Undecided
dann frazier

Bug Description

[Impact]
I have a UEFI-based server with both a graphical head and a serial console (Cavium Sabre). If I boot the netboot (d-i) installer, the install menu appears on both, and I'm able to interact with the installer over both the serial console and the graphical head. However, when booting into the *installed* system (w/ HIDDEN_TIMEOUT disabled), the GRUB menu only appears over the graphical head. I can use either serial or graphical for input - that is, if I monitor the graphical head I can see the changes I'm typing on the serial console, but the serial console remains blank until I boot into Linux.

Note: MAAS installations are not impacted by this because curtin adds an /etc/default/grub.d stub that manually sets "GRUB_TERMINAL=console".

[Test Case]
Install the system using d-i over the serial console.
Comment out the HIDDEN variables in /etc/default/grub.
sudo update-grub
Reboot - and watch for the GRUB menu over the serial console.

[Regression Risk]
TBD

Revision history for this message
dann frazier (dannf) wrote :

I've found that the offending line in /boot/grub/grub.cfg is:

terminal_output gfxterm

Prior to that, my active input and output terminals are set to "console". If I comment out that line, I can interact with the installed GRUB over both the serial and VGA consoles, just like with d-i.

I'm not sure what the right solution is. One option is to change:
  terminal_output gfxterm
    to:
  terminal_output --append gfxterm

That makes both "console" and "gfxterm" active. But, maybe it makes more sense to just not emit the "terminal_output gfxterm" under certain conditions. Does gfxterm have any effect on other UEFI-based systems?

Revision history for this message
dann frazier (dannf) wrote :
dann frazier (dannf)
Changed in grub2 (Ubuntu Bionic):
status: New → In Progress
Changed in grub2 (Ubuntu Artful):
status: New → Triaged
Changed in grub2 (Ubuntu Xenial):
status: New → Triaged
dann frazier (dannf)
Changed in grub2 (Ubuntu Bionic):
status: In Progress → Fix Committed
assignee: nobody → dann frazier (dannf)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.02-2ubuntu6

---------------
grub2 (2.02-2ubuntu6) bionic; urgency=medium

  [ Steve Langasek ]
  * debian/patches/bufio_sensible_block_sizes.patch: Don't use arbitrary file
    fizes as block sizes in bufio: this avoids potentially seeking back in
    the files unnecessarily, which may require re-open files that cannot be
    seeked into, such as via TFTP. (LP: #1743249)

 -- Mathieu Trudel-Lapierre <email address hidden> Mon, 05 Feb 2018 11:58:09 -0500

Changed in grub2 (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello dann, or anyone else affected,

Accepted grub2 into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2/2.02~beta3-4ubuntu7.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in grub2 (Ubuntu Artful):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-artful
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello dann, or anyone else affected,

Accepted grub2-signed into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2-signed/1.85.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
dann frazier (dannf) wrote :

Verified by:
  - MAAS installing a Cavium ThunderX2 Sabre
  - Removing /etc/default/grub.d/50-curtin-settings.cfg (which forces on console mode)
  - Commenting out the HIDDEN settings from /etc/default/grub
  - sudo dpkg-reconfigure grub-arm64-efi (enable NVRAM variables - MAAS disables this)
  - reboot - verify that the GRUB menu does *not* appear
  - upgrade to -proposed GRUB packages
  - verify that GRUB menu *does* appear now

tags: added: verification-done verification-done-artful
removed: verification-needed verification-needed-artful
dann frazier (dannf)
Changed in grub2 (Ubuntu Xenial):
status: Triaged → In Progress
assignee: nobody → dann frazier (dannf)
Changed in grub2 (Ubuntu Artful):
assignee: nobody → dann frazier (dannf)
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for grub2 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.02~beta3-4ubuntu7.2

---------------
grub2 (2.02~beta3-4ubuntu7.2) artful; urgency=medium

  * debian/patches/mkconfig_keep_native_term_active.patch: Keep the
    default EFI console active while enabling gfxterm. (LP: #1743884)

 -- dann frazier <email address hidden> Fri, 09 Feb 2018 11:45:07 -0700

Changed in grub2 (Ubuntu Artful):
status: Fix Committed → Fix Released
Revision history for this message
dann frazier (dannf) wrote :

The released fix for this introduced a regression (LP: #1752767), so I'm reverting while we seek a better fix.

Changed in grub2 (Ubuntu Xenial):
status: In Progress → Confirmed
Changed in grub2 (Ubuntu Artful):
status: Fix Released → Confirmed
Changed in grub2 (Ubuntu Bionic):
status: Fix Released → Confirmed
tags: added: id-5ab94d79fce99ce2ddb8a210
Changed in grub2 (Ubuntu Artful):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.