Ticket #968 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Subsequent reboots after entering recovery mode will sit at the grub menu forever

Reported by: jdreed Owned by:
Priority: blocker Milestone: Natty Release
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:

Description

Thanks to a grub config that thinks it's smarter than you, once a machine has been booted into recovery mode, subsequent reboots will sit at the grub menu waiting for input until the machine has successfully booted _AND_ cleanly shutdown at least once using the normal kernel. We should figure out which grub option to kick to fix this. There is a GRUB_TIMEOUT set in /etc/default/grub, so I'm not sure what we're missing here. GRUB_HIDDEN_TIMEOUT, however, is set to 0.

Change History

comment:1 Changed 10 years ago by geofft

This is from /etc/grub.d/00_header:

cat << EOF
if [ \${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=${GRUB_TIMEOUT}
fi
EOF

The easiest way to set another timeout is to drop a later .d script that prints a different "set timeout" line. For -cluster, unconditionally using $GRUB_TIMEOUT is fine. For -workstation or below, I'm uncomfortable messing with GRUB, but if we have to, copying the code in a later .d script using something like 300 instead of -1 would at least let the machine boot unattended. (But usually if you're going to the recovery menu and not exiting the recovery menu by booting cleanly, it's because the machine won't boot normally and needs manual attention, so this behavior is reasonable.)

Depending on what you want to do here, e.g. a recovery menu item that automatically reboots, running grub-editenv /boot/grub/grubenv unset recordfail (cf. /etc/pm/sleep.d/10_grub-common) just before rebooting would also work.

comment:2 Changed 10 years ago by jdreed

I'm only considering cluster.

comment:3 Changed 10 years ago by jdreed

  • Status changed from new to committed

comment:4 Changed 10 years ago by jdreed

  • Status changed from committed to development

c-l-c 1.34 ->dev

comment:5 Changed 10 years ago by jdreed

  • Status changed from development to proposed

comment:6 Changed 10 years ago by jdreed

  • Status changed from proposed to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.