Change Linux kernel
For arch linux as example:
Install linux for newest linux kernel:
sudo pacman -S linux linux-headers
or Install linux-lts for LTS version:
sudo pacamn -S linux-lts linux-lts-headers
Check local linux kernel installed:
ls -l /boot/
systemd-boot is default bootloader by Arch linux.
We need manually make a config file under:
- boot/loader/entries
file name whatever you call, but the extension must be .conf
Example for linux-lts: filename: 2024-12-2102-41-11linux-lts.conf
# Created by: archinstall # Created on: 2024-12-21_02-41-11 title Arch Linux (linux-lts) linux /vmlinuz-linux-lts initrd /initramfs-linux-lts.img options root=PARTUUID=8c2984dc-2784-41aa-b24d-d0eadc8d49c3 rw rootfstype=ext4
the UUID should replace with your root filesystem UUID:
lsblk -o NAME,UUID,FSTYPE,MOUNTPOINT NAME UUID FSTYPE MOUNTPOINT nvme0n1 ├─nvme0n1p1 AC60-FB2D vfat /boot └─nvme0n1p2 7ee8585a-0045-4531-ac58-d3bf6254f38c ext4 /
After save the config file, use this command to check:
bootctl list type: Boot title: Arch id: 2024-12-21_02-41-11_linux.conf source: /boot/loader/entries/2024-12-21_02-41-11_linux.conf linux: /boot/vmlinuz-linux initrd: /boot/amd-ucode.img /boot/initramfs-linux.img options: root=UUID=7ee8585a-0045-4531-ac58-d3bf6254f38c type: Boot title: Arch id: 2024-12-21_02-41-11_linux-lts.conf source: /boot/loader/entries/2024-12-21_02-41-11_linux-lts.conf linux: /boot/vmlinuz-linux-lts initrd: /boot/amd-ucode.img /boot/initramfs-linux-lts.img options: root=UUID=7ee8585a-0045-4531-ac58-d3bf6254f38c type: Boot title: Arch id: 2024-12-21_02-41-11_linux-lts-fallback.conf source: /boot/loader/entries/2024-12-21_02-41-11_linux-lts-fallback.conf linux: /boot/vmlinuz-linux-lts initrd: /boot/initramfs-linux-lts-fallback.img options: root=PARTUUID=8c2984dc-2784-41aa-b24d-d0eadc8d49c3 type: Automatic title: Reboot id: auto-reboot-to-firmware-setup source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
Now you will see the LTS options under boot menu.