grub-set-default should give a warning when GRUB_DEFAULT != saved

Bug #543834 reported by Jordan on 2010-03-22
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: grub2

Without GRUB_DEFAULT=saved in /etc/default/grub grub-set-default and grub-reboot will silently fail and users are likely to see this as a bug rather than a misconfiguration.

In the simplest case these utilities should should check /etc/default/grub and print a warning that the changes being made will have no effect without GRUB_DEFAULT=saved ( but still make the changes ).

Daniel Richard G. (skunk) wrote :

Agreed. I was about to file a bug to the effect of "grub-set-default does not work."

Also, the grub-set-default(8) and grub-reboot(8) man pages clearly need to mention this caveat.

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: New → Incomplete
Daniel Richard G. (skunk) wrote :

I've confirmed that this issue is still present in Ubuntu focal.

Changed in grub2 (Ubuntu):
status: Incomplete → New
tags: added: focal
Daniel Richard G. (skunk) wrote :

To elaborate on the situation in Ubuntu focal, as there have been some improvements:

* grub-reboot(8) now works even when GRUB_DEFAULT != "saved", so that is out of the picture. I've edited the title of this bug accordingly.

* Both the man page and --help text for grub-set-default(8) indicate that GRUB_DEFAULT="saved" is required for the command to have the desired effect.

* grub-set-default(8) still gives no warning/error when GRUB_DEFAULT != "saved", however, leaving open the possibility of breaking scripts or other scenarios where it is assumed to work.

summary: - grub-set-default and grub-reboot should give a warning when GRUB_DEFAULT
- != saved
+ grub-set-default should give a warning when GRUB_DEFAULT != saved
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers