On , James wrote:
Howdy,
So I have these entries in my /etc/default/grub file:
GRUB_DISTRIBUTOR="Gentoo"
GRUB_DEFAULT=kernel-3.13.6-gentoo
I don't think this will work -- it is the title of menu entry you need
not the kernel executable
GRUB_HIDDEN_TIMEOUT=3
GRUB_TIMEOUT=10
GRUB_GFXMODE=1024x768
I ran 'grub2-mkconfig -o /boot/grub/grub.cfg'
after the last ebuild of 3.13.6-gentoo
/boot shows:
kernel-3.13.0-gentoo
kernel-3.13.0-gentoo-r1
kernel-3.13.1-gentoo
kernel-3.13.6-gentoo
kernel-3.13.6B-gentoo
kernel-3.13.7-gentoo
Obviously, I like to kept kernel experiments around a while....
So when I get the Grub2 (ascii) boot menu and just select the
default, it boots kernel-3.13.7-gentoo, despite
'kernel-3.13.6-gentoo' being set in as the default for Grub2?
Grub2 seems to do things a little differently.
I've been working through my list especially for headless and failed
boots.
you want in /etc/default/grub
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
just an aside if you are going headless you want GRUB_SAVEDEFAULT=false
especially for a fallback boot option. if you don't want the selection
just booted to become the default, you set this to false.
once you have that you can then
# grub2-set-default 'Gentoo GNU/Linux, with Linux x86_64-3.13.6-gentoo'
it would be nice if there was a way of getting id menu numbers.
i've not looked into the grub2-mkconfig but i get a menu with a single
default option and advanced options wiht previous kernels listed in
there.
id numbers would not work too well with sub menus, but i recently had a
message from grub saying that because my default option had been moved
to the advanced option it should be amended to be
# grub2-set-default
'gnulinux-x86_64-3.12.13-gentoo-advanced-a48a107b-c379-4c72-bcda-25011968eab5'
also for booting an option once, on the next reboot you can use
# grub2-reboot 'GNU/Linux, with Linux x86_64-6.13.6-gentoo'
afaik if your kernel/initramfs use custom names e.g. PeterRabbit-vmlinuz
with PoohBear-initramfs grub2-mkconfig doesn't work for you, so make
sure your files conform.
Comment thoughts and suggestions, including deeper reading on grub2
is most welcome, particulary Grub2 examples.
Also, is there a nice 'gui' boot-menu for grub2 ?
It seems to take several repeated attemps for grub2 to correctly
use the kernel I desire, despite what syntax/order I use.
If I boot a kernel that is not the default, it takes about 2 minutes,
then another 2 minutes of blank screen then it boot fairly quickly.
The mobo is a GA-99FXA-UD3 and this might not have the bios/uefi/???
optimally configured? (first gigabyte moble).
The is what I have read on grub2 (man pages, gentoo wiki) so additional
reading, with some useful examples would also be much appreciated.