Hello,
If I have installed two kernels. Where can I set which one is loaded automatically on boot?
By default it selects the last booted one.
You can change these through the bootloader configuration (Depending on your chosen bootloder):
I use systemd boot
OK, I’m probably too stupid, but I don’t see how I can now set which kernel is loaded “preferentially”. Am I missing something?
You need to edit the loader configuration (/boot/loader/loader.conf) and set the preferred kernel conf:
https://wiki.archlinux.org/title/Systemd-boot#Loader_configuration
I’ve never changed it, i just keep it as so it remembers the last booted one, so not totally sure how you should put the config name in there. But you can find the conf files in /boot/loader/entries
this is the content of my /boot/loader/loader.conf
default @saved
timeout 2
console-mode keep
Where can I choose which kernel to use if I don’t even recognize which one is currently set ?
Its the first line
default @saved
Which always selects the last booted kernel. So you would need to change the @saved part to the kernel conf you want be default.
Better to check loader.conf and systemd-b
run uname -r
name -r
6.12.0-rc6-2-cachyos-autofdo
Runs because I have rebooted and selected it in the boot menu. But I would like to test it as “default”
Do I “simply” have to set
default @6.12.0-rc6-2-cachyos-autofdo
to change the kernel ?
Well it will be the default everytime if you don’t select anything else when booting.
But you need to check the conf name bootctl list
so for example it should be something like linux-cachyos-rc.conf
(or whatever the conf name in the list is)
EDIT: You can propably also set it from the system with bootctl set-default