Downgrade kernel with systemd-boot

Hello! I can’t switch to kernel 5.10. I constantly boot with kernel 5.15. Please tell me what should I do.

    ~  mhwd-kernel -li                                                                                                              ✔ 
Currently running: 5.15.65-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux518
   * linux54
    ~  cat /boot/efi/loader/loader.conf                                                                                             ✔ 
timeout 3
#console-mode keep
default kernel510.conf
editor 0
    ~  ls -la /boot/efi/loader/entries                                                                                              ✔ 
загалом 3
drwxr-xr-x 2 root root 512 вер 30 18:49 .
drwxr-xr-x 3 root root 512 вер 30 18:56 ..
-rwxr-xr-x 1 root root 176 чер 23 00:10 arch.conf
-rwxr-xr-x 1 root root 206 чер 23 00:11 arch-fallback.conf
-rwxr-xr-x 1 root root 184 вер 30 18:49 kernel510.conf
    ~  cat /boot/efi/loader/entries/kernel510.conf                                                                                  ✔ 
title	Manjaro Linux 5.10
version	5.10
linux	/vmlinuz-5.10-x86_64
initrd	/amd-ucode.img
initrd	/initramfs-5.10-x86_64.img
options	root=PARTUUID=e39491ff-055a-6d48-8f32-b989b78d93fa rw

    ~  ls -la /boot/vml*                                                                                                            ✔ 
-rw-r--r-- 1 root root  9739328 жов  2 23:32 /boot/vmlinuz-5.10-x86_64
-rw-r--r-- 1 root root 10783264 вер 19 01:08 /boot/vmlinuz-5.15-x86_64
-rw-r--r-- 1 root root 10819808 вер 26 18:47 /boot/vmlinuz-5.18-x86_64
-rw-r--r-- 1 root root  7441216 вер 19 01:08 /boot/vmlinuz-5.4-x86_64
    ~    
    ~  sudo bootctl update                                                                                                          ✔ 
Read $KERNEL_INSTALL_LAYOUT from /etc/machine-info. Please move it to the layout= setting of /etc/kernel/install.conf.
Skipping "/boot/efi/EFI/systemd/systemd-bootx64.efi", since same boot loader version in place already.
Skipping "/boot/efi/EFI/BOOT/BOOTX64.EFI", since same boot loader version in place already.

Manjaro will boot the newest kernel installed. You can select another in the grub menu by clicking the advanced options for manjaro in the list. You can remove the 5.15 and 5.18 kernels and 5.10 will become the default.

1 Like

Thank you! I don’t have GRUB because I use systemd-boot for EFI. But I realized that I have to press the Esc key during boot to have access to the choice of cores.

This is not the default setup and you need to configure it manually.

edit you $ESP/loader/loader.conf to set the default config

https://wiki.archlinux.org/title/Systemd-boot#Loader_configuration

1 Like

you can remove kernel5.18 is EOL

1 Like

I already did it. I wrote that the 5.10 kernel was loaded by default through the “default” parameter. But 5.15 is loaded. That’s why I asked the question on the forum.

I missed that - have you tried using bootctl to set the default? As I understand it - bootctl will update the firmware to point to the specific entry

First

bootctl list

Then

bootctl set-default <id-from-list>