Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So what I do is I set GRUB_DEFAULT in /etc/default/grub to kernel name - FAIL, still boots the exact same kernel #0 from list. Then I didn't give up and try setting GRUB_DEFAULT to number/index regarding to menuentry in /boot/grub/grub.cfg - no luck again.
Here is content of my /etc/default/grub
Quote:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Does anybody know why this crap doesn't boot the kernal I specify by GRUB_DEFAULT?
PS: of cource I do sudo grub-update after I change that /etc/default/grub file
I cannot agree more, default is only on installed OS'e including Windows and other than Linux, it is zero based, every time you make changes to your /etc/default/grub file you have to update grub in order for the changes to take place.
@colorpurple21859, I have added you suggestion "GRUB_DISABLE_OS_PROBER=true" but still grub boots the very first kernel from /boot/grub/grub.cfg
Below content of /etc/default/grub I have now:
Quote:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
I managed to boot into kernel of my choice by changing order of "menuentry" in /boot/grub/grub.cfg. However this is not a solution, rather a quick and dirty hack ;/
So everytime I will update-grub I will lose my settings too...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.