You are not logged in.

#1 2024-09-20 08:46:37

Tealk
Member
Registered: 2024-08-21
Posts: 45
Website

[SOLVED] add another kernel to boot selection

Hello,

since I often read that the cashy kernel is supposed to be very good for gaming, I wanted to test it and add it to my boot selection, but I don't quite understand how, because the other entries are not in the loader.conf. I think the list automatically selects which .efi files are in the path /boot/EFI/Linux/, but I'm probably overlooking how to create them.

I am currently using UEFI, Unified kernel image and SecureBoot with sbctl

cat /boot/loader/loader.conf
timeout 3
#console-mode keep
bootctl list
         type: Boot Loader Specification Type #2 (.efi)
        title: Arch Linux (6.10.10-arch1-1) (default) (selected)
           id: arch-linux.efi
       source: /boot//EFI/Linux/arch-linux.efi
     sort-key: arch
      version: 6.10.10-arch1-1
        linux: /boot//EFI/Linux/arch-linux.efi
      options: cryptdevice=PARTUUID=d59df4a1-78a6-4923-8b5e-526780e1f01d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ r
w rootfstype=btrfs

         type: Boot Loader Specification Type #2 (.efi)
        title: Arch Linux (6.10.10-arch1-1~fallback)
           id: arch-linux-fallback.efi
       source: /boot//EFI/Linux/arch-linux-fallback.efi
     sort-key: arch
      version: 6.10.10-arch1-1~fallback
        linux: /boot//EFI/Linux/arch-linux-fallback.efi
      options: cryptdevice=PARTUUID=d59df4a1-78a6-4923-8b5e-526780e1f01d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ r
w rootfstype=btrfs

         type: Automatic
        title: Reboot Into Firmware Interface
           id: auto-reboot-to-firmware-setup
       source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
ls /boot/EFI/Linux/
arch-linux.efi  arch-linux-fallback.efi
ls /boot/
amd-ucode.img                         initramfs-linux-cachyos.img           vmlinuz-linux
EFI/                                  initramfs-linux-cashy.img             vmlinuz-linux-cachyos

Last edited by Tealk (2024-09-20 12:08:17)

Offline

#2 2024-09-20 10:31:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,146

Re: [SOLVED] add another kernel to boot selection

Did you forget to configure the cachyos .preset configuration for UKI? https://wiki.archlinux.org/title/Unifie … reset_file

Offline

#3 2024-09-20 10:38:26

Tealk
Member
Registered: 2024-08-21
Posts: 45
Website

Re: [SOLVED] add another kernel to boot selection

I would have actually created an entry:

cat /etc/mkinitcpio.d/linux.preset
# mkinitcpio preset file for the 'linux' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"

PRESETS=('default' 'fallback' 'cashy')

#default_config="/etc/mkinitcpio.conf"
#default_image="/boot/initramfs-linux.img"
default_uki="/boot/EFI/Linux/arch-linux.efi"
default_options="--splash /usr/share/systemd/bootctl/splash-arch.bmp"

#fallback_config="/etc/mkinitcpio.conf"
#fallback_image="/boot/initramfs-linux-fallback.img"
fallback_uki="/boot/EFI/Linux/arch-linux-fallback.efi"
fallback_options="-S autodetect"

#cashy_config="/etc/mkinitcpio.conf"
#cashy_image="/boot/initramfs-linux-cashy.img"
cashy_uki="/boot/EFI/Linux/cashy-linux.efi"
cashy_options="-S autodetect"

Offline

#4 2024-09-20 10:52:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,724

Re: [SOLVED] add another kernel to boot selection

'linux.preset' is only for the 'linux' package, there is a separate preset for each kernel.

Offline

#5 2024-09-20 11:22:07

Tealk
Member
Registered: 2024-08-21
Posts: 45
Website

Re: [SOLVED] add another kernel to boot selection

I hadn't even thought of that, thank you.

cat /etc/mkinitcpio.d/linux-cachyos.preset 
# mkinitcpio preset file for the 'linux-cachyos' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-cachyos"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
#default_image="/boot/initramfs-linux-cachyos.img"
default_uki="/boot/EFI/Linux/arch-linux-cachyos.efi"
default_options="--splash /usr/share/systemd/bootctl/splash-arch.bmp"

#fallback_config="/etc/mkinitcpio.conf"
#fallback_image="/boot/initramfs-linux-cachyos-fallback.img"
fallback_uki="/boot/EFI/Linux/arch-linux-cachyos-fallback.efi"
fallback_options="-S autodetect"

Last edited by Tealk (2024-09-20 12:06:45)

Offline

#6 2024-09-20 11:51:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,146

Re: [SOLVED] add another kernel to boot selection

Does that answer the question and is this [SOLVED] now? If so, don't forget to mark the topic as such by editing the title in your first post

Offline

#7 2024-09-20 12:08:04

Tealk
Member
Registered: 2024-08-21
Posts: 45
Website

Re: [SOLVED] add another kernel to boot selection

Yes I will, thanks for the help.

But I still have one question, where do I specify what the default is that should be loaded if no input is made?

Offline

#8 2024-09-20 12:21:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,146

Re: [SOLVED] add another kernel to boot selection

Press d while in the boot menu on the entry you want to be the default, or https://wiki.archlinux.org/title/System … figuration

Last edited by V1del (2024-09-20 12:22:26)

Offline

Board footer

Powered by FluxBB