[Bug 1102925] Re: grub-reboot does not select kernel
Brian Candler
1102925 at bugs.launchpad.net
Tue Jan 22 13:48:29 UTC 2013
Having found
http://ubuntuforums.org/showthread.php?t=1428427
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.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1102925
Title:
grub-reboot does not select kernel
Status in “grub2” package in Ubuntu:
New
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.
[*] http://ubuntuforums.org/showthread.php?p=10720316
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1102925/+subscriptions
More information about the foundations-bugs
mailing list