GRUB: Parameters GRUB_DEFAULT and GRUB_SAVEDEFAULT

Hello everyone,

I have a question regarding the parameters GRUB_DEFAULT=0 and GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true.

From what I’ve read, when set to “saved” and “true,” the system saves the user’s selection for subsequent system boots.
GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=5
GRUB_SAVEDEFAULT=true

I currently have 6.17.0-40-generic and 7.0.0-28-generic on the system.
So if I select 6.17.0-40-generic, the next boots will run 6.17.0-40-generic —is that correct?

When I next upgrade the kernel to 7.0.0-NN-generic, will the system continue to boot with 6.17.0-40-generic, or with 7.0.0-28-generic?

Thanks in advance for the clarification :slight_smile:

Hello, The system will boot to you saved kernel, so if an update come for 7.0 and you install it you will need to go to grub and select the 6.17 to be totally sure to set it for next boot

1 Like

When you have booted with 6.17 kernel and then set kernel 6.17 as saved, it will be kept until you boot with another kernel. The update wouldn't change the boot kernel.

2 Likes

Thank you, that's very interesting information. That means I can decide for myself when I want to use a new kernel version.

It does

2 Likes

However, the 6.17 kernel will no longer receive updates from August. If you'd like to use an older kernel that is still supported and your hardware is a few years old, you could, for example, install the GA kernel 6.8 and set it as saved default kernel.

sudo apt install linux-generic linux-headers-generic

After each update of the kernel 6.8, go to advanced options and select the latest version of 6.8.

1 Like