Recovery menu cannot be controlled with keyboard

Bug #203385 reported by Albert Damen
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
friendly-recovery (Ubuntu)
Fix Released
Medium
Unassigned
Intrepid
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: friendly-recovery

After upgrading a clean Dapper installation in kvm to Hardy, Gnome did not start correctly. To get access to the system I tried to boot in recovery mode, using the 2.6.24-12 kernel. This resulted in a graphical menu, which was supposed to give me three choices. Unfortunately, I could not control the menu. The arrow keys did not move between the three options, but simply wrote characters over the menu. As the default option is to continue a normal boot process, I was lost and could not enter recovery mode.
A second reboot in recovery mode using the hardy kernel gave the same result.
Finally, a new reboot, now using the Dapper kernel (2.6.15-51-386) recovery mode, gave a correct looking menu, that could be controlled with the keyboard and finally gave me root access to the system.

As the recovery mode is the last resort in case of problems, it must be guaranteed to work. If it is not 100% certain the menu can be controlled by keyboard correctly on all different systems, then in my opinion the "drop in root shell" option must be the first option in the menu, so it can be entered by just pressing enter.

The attached image shows the menu after pressing the up and down arrow a few times.

Revision history for this message
Albert Damen (albrt) wrote :
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

I agree that having a root shell be the default makes sense.

Changed in friendly-recovery:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Lars Ljung (larslj) wrote :

The man page for whiptail says that you can "move between the menu entries by pressing the UP/DOWN keys, the first letter of the tag as a hot-key.". So if you press the r key twice and then hit enter you will get a root shell.

To make this more obvious you could change the menu entries to something like "(R)oot Drop to root shell prompt" or "2 Drop to root shell prompt".

Revision history for this message
marco.pallotta (marco-pallotta) wrote :

Lars, unfortunally neither up/down keys nor "hot-key" runs for me :-(

Revision history for this message
James Hillyerd (james-hillyerd) wrote :

The combination of this bug and #122948 (can't use sudo after configuring network) basically means I have a brand new Ubuntu install that is completely hosed. Please fix one of these bugs!

Revision history for this message
Michael Vogt (mvo) wrote :

Does this only happen inside kvm/qemu? Or was this seen on real hardware as well?

Changed in friendly-recovery:
status: Confirmed → Incomplete
Revision history for this message
marco.pallotta (marco-pallotta) wrote :

Michael, on real hardware as well.

Revision history for this message
Michael Vogt (mvo) wrote :

@marco: on what specific hardware have you seen this issue? What video card is installed and how is the keyboard connected (standard ps2 or usb?).

Revision history for this message
marco.pallotta (marco-pallotta) wrote :

Michael, my hardware is an Acer laptop (aspire 5920) with an integrated graphics controller INTEL Corporation Mobile GM965/GL960 (the driver module loaded by the system is i915).

Revision history for this message
Thomas Beyer (tb-beyercenter) wrote :

updating 8.04 to 8.10 with xubuntu on msi laptop and kernel 2.6.27-4 no problems with recoverymenu!

Changed in friendly-recovery:
status: Incomplete → Fix Released
Revision history for this message
marco.pallotta (marco-pallotta) wrote :

The fix is released for Intrepid but what about Hardy?

Revision history for this message
Adam Katz (khopesh) wrote :

Still an issue on Ubuntu Intrepid 8.10 (with a Dell Latitude D530) when altering the non-recovery mode boot option to suffix the word "single" on the end of the loading. This works fine when I go to "recovery mode" directly, but I really expected appending "single" to the end of that string to simply dump me in a root shell as if I had entered "root" from the Recovery Menu (but without anywhere near so much stuff loading beforehand).

Revision history for this message
John McCabe-Dansted (gmatht) wrote :

Still occurs in Jaunty 32bit (VirtualBox) and Karmic Alpha-4 (real hardware, PS2 keyboard). I boot the livecd, press F6 add single, boot, and then nothing works. I can type RR and it seems as though it selects the rootshell, but pressing Enter doesn't do anything, I am still in whiptail and can still select menu items.

Pressing Cntl-C quits whiptail, but instead of giving me a root shell it just starts normally or complains that init has been terminated. Would it be possible to at least trap the Ctrl-C and cause it to give me a root shell?

Revision history for this message
John McCabe-Dansted (gmatht) wrote :

Also whiptail seems to work fine once the computer has booted, even under linuxterms. Does Ubuntu configure the linuxterm keyboard during boot? If so, maybe should be done before whiptail is started? Alternatively is it possible to undo this configuration so that I can test whiptail under controlled conditions?

Revision history for this message
marco.pallotta (marco-pallotta) wrote :

John, I have opened a new bug report (#417859) about the issue related to the recovery menu, after having booted the system with the single kernel option, that cannot be controlled with the keyboard.
The issue described in this bug report (recovery manu that cannot be controlled with the keyboard after having booted the system with the recovery kernel) is fixed.

helpsteve (kaurblimey83)
Changed in friendly-recovery (Ubuntu):
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
August Karlstrom (fusionfile) wrote :

I experience this problem in the latest Ubuntu 11.10. I can select entries in the grub menu but the recovery menu does not respond to any key press. I use an Apple USB keyboard.

Revision history for this message
Matthew H McKenzie (f-launchpad-swellhunter-org) wrote :

Still an issue for me - Oneiric AMD64 Server. The server CDs are not really live CD's.

Revision history for this message
Chris Showell (cshowell) wrote :

Still an issue for me in Xenial (16.04.2 LTS) on a MacBook Pro 5,5.

Trying to recover after a crash, and can't get past the

Welcome to emergency mode!
...[some suggestions]...
Press Enter for maintenance
(or press Control-D to continue):

Stage. No keyboard input accepted whatsoever (although the keyboard work in grub, and allows editing of the boot script).

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

This is still an issue with bionic. Pressing arrow keys in the friendly-recovery menu will result in [B and [A. Makes it very difficult to fix a broken system.

Revision history for this message
BETLOG (betlog-hax) wrote :

Still seeing this in Kubuntu 18.04 installs.
Menu does not display, blind selections seem to do nothing or simply restart.
As stated above: this is a system killer if discovered when we actually have a serious problem.
Fortunately in my case I was able to work around it, but it was still terrifying to discover.... half way through 2020

Revision history for this message
BETLOG (betlog-hax) wrote :

PS: it seems to be entirely ignoring GRUB_GFXMODE / GRUB_GFXPAYLOAD_LINUX at some point after selecting a 'recovery options' grub-entry. It looks to be reverting to 640x480...maybe relevant.

Revision history for this message
BETLOG (betlog-hax) wrote :

In case it's useful: at the end of the video, after the text stops scrolling, i press:
r a few times
enter a few times
ctrl-alt-del
/etc/default/grub included (as you can see from the commented lines I have been trying to figure out if thats why it isnt working, because it seems to have broken some time after doing a bunch of resolution tests)

http://oh-hi.info/video/2020-06-04--19-44-58_concatFilter_H264-veryslow.mp4

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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