grub-reboot does not restore previous default after reboot

Bug #497326 reported by Jordan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub
Unknown
Unknown
grub2 (Ubuntu)
Fix Released
High
Colin Watson
Karmic
Won't Fix
High
Unassigned

Bug Description

Binary package hint: grub2

grub-reboot is currently effectively equivalent to grub-set-default in karmic's grub2.

Because of this bug, grub-reboot in karmic is worse than useless: It will not work properly in any configuration and since the standard use case for grub-reboot is to reboot a remote server into a non-default configuration and be able to fall back to the default ( known working ) configuration where the user can fix things via ssh, not restoring the default is very likely to cause people to completely lose access to remote servers. This has happened at least once that I know of. More details @ http://lists.gnu.org/archive/html/grub-devel/2009-12/msg00276.html .

Related branches

Revision history for this message
Jordan (jordanu) wrote :
Revision history for this message
MarcRandolph (mrand) wrote :

Howdy, and thank you for helping to improve Ubuntu by opening this ticket (and especially for attaching a patch)!

Changed in grub2 (Ubuntu):
importance: Undecided → High
status: New → Triaged
Jordan (jordanu)
description: updated
Revision history for this message
Jordan (jordanu) wrote :

I've found another bug that will prevent the default from being restored the first time you use grub-reboot. Details @ http://lists.gnu.org/archive/html/grub-devel/2009-12/msg00293.html

Colin Watson (cjwatson)
Changed in grub2 (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Colin Watson (cjwatson)
Changed in grub2 (Ubuntu Karmic):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.4 KiB)

This bug was fixed in the package grub2 - 1.98~20100101-1ubuntu1

---------------
grub2 (1.98~20100101-1ubuntu1) lucid; urgency=low

  * Resynchronise with Debian. Remaining changes:
    - Adjust for default Ubuntu boot options ("quiet splash").
    - Default to hiding the menu; holding down Shift at boot will show it.
    - Set a monochromatic theme for Ubuntu.
    - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
      recovery mode, quiet option, tweak how memtest86+ is displayed, and
      use UUIDs where appropriate.
    - Conflict with grub (<< 0.97-54) as well as grub-legacy.
    - Fix backslash-escaping in merge_debconf_into_conf.
    - Remove "GNU/Linux" from default distributor string.
    - Add crashkernel= options if kdump and makedumpfile are available.
    - If other operating systems are installed, then automatically unhide
      the menu. Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
      if available to check whether Shift is pressed. If it is, show the
      menu, otherwise boot immediately. If keystatus is not available, then
      fall back to a short delay interruptible with Escape.
    - Allow Shift to interrupt 'sleep --interruptible'.
    - Don't display introductory message about line editing unless we're
      actually offering a shell prompt. Don't clear the screen just before
      booting if we never drew the menu in the first place.
    - Remove some verbose messages printed before reading the configuration
      file.
    - If the environment variable "quiet" is set to something other than 0,
      suppress progress messages as the kernel and initrd load. Set this for
      non-recovery kernel menu entries.
    - Add GRUB_DEFAULT=saved, as well as grub-set-default and grub-reboot
      utilities. Provides functionality essentially equivalent to GRUB
      Legacy's savedefault.
    - Keep the loopback file open so that subsequent changes to the "root"
      environment variable don't affect it.
    - Change prepare_grub_to_access_device to handle filesystems
      loop-mounted on file images.
    - Ignore devices loop-mounted from files in 10_linux.
    - Show the boot menu if the previous boot failed, that is if it failed
      to get to the end of one of the normal runlevels.
    - Handle RAID devices containing virtio components.
  * Update savedefault patch from current Bazaar branch, fixing grub-reboot
    to have distinct behaviour from grub-set-default (LP: #497326).
  * Fix grub-mkisofs compilation error with FORTIFY_SOURCE.
  * Convert recordfail boilerplate in each menu entry to use a function.

grub2 (1.98~20100101-1) unstable; urgency=high

  * New Bazaar snapshot.
    - Fix FTBS on sparc.

  [ Robert Millan ]
  * rules: Auto-update version from debian/changelog.

  [ Felix Zielcke ]
  * Add -O0 to CFLAGS on powerpc to avoid the `_restgpr_31_x in boot is
    not defined' FTBFS.

grub2 (1.98~20091229-1) unstable; urgency=high

  * New Bazaar snapshot.
    - Fix slowness when $prefix uses an UUID.
      (Closes: #541145, LP: #420933)
    - Correctly set TARGET_CFLAGS. (Closes: #562953)

  [ Robert Millan ]
  * grub-rescue-pc.postinst: Build USB rescue image.
  * rules...

Read more...

Changed in grub2 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Mike C. Delorme (mdelorme) wrote :

This bug appears in Lucid LTS with grub-pc - 1.98-1ubuntu9

Revision history for this message
Mike C. Delorme (mdelorme) wrote :

I see that this bug has been reported as fixed, however the bug still seems present on Lucid with the latest stable updates. Is this fix planned to be released in a software update any time soon?

Revision history for this message
Jordan (jordanu) wrote :

@Mike C. Delorme

This particular bug is indeed fixed in grub 1.98 (and therefore in Lucid). If you are experiencing another bug with similar symptoms please file a new bug report by running "ubuntu-bug grub2" in a terminal. Please include a detailed description of the exact symptoms you are seeing and if possible steps to reproduce them.

Revision history for this message
Mike C. Delorme (mdelorme) wrote :

Hello,

Thanks for the response. I opened a new bug report a few days ago. Here's the link:

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/788298

Rolf Leggewie (r0lf)
Changed in grub2 (Ubuntu Karmic):
status: Triaged → 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.