grub-reboot does not select kernel
Bug #1102925 reported by
Brian Candler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
[Ubuntu 12.04.1 LTS server x86_64]
If I do
[code]
# vi /etc/default/grub
GRUB_DEFAULT="2>20"
# update-grub
[/code]
then I can select the default kernel to be used on next reboot.
However I believe it should be possible to do this in a one-shot way with grub-reboot, and this doesn't work.
[code]
# grub-reboot "2>20"
# cat /boot/grub/grubenv
# GRUB Environment Block
saved_entry=2>20
prev_saved_entry=0
#######
...
# reboot
[/code]
At reboot I just get the default kernel selected.
It doesn't appear to be anything to do with submenus[*] because "grub-reboot 1" doesn't even select the recovery option from the main menu.
Related branches
To post a comment you must log in.
Having found ubuntuforums. org/showthread. php?t=1428427
http://
it looks like the pre-requisite is to configure
GRUB_DEFAULT=saved
There is a comment at the top of /etc/default/grub which refers the reader to info -f grub -n 'Simple configuration' where this is documented.
However it is not mentioned in the manpages of grub-reboot, grub-set-default or grub-editenv; I think it would be useful if it were.