Arch Linux provides multiple kernel options, and with systemd-boot.
1️⃣ Check Your Current Kernel
Before switching kernels, verify which kernel you're using:
uname -r
# output: 6.13.2-arch1-1
# This means you are running the **latest Arch Linux kernel**.
2️⃣ Install a New Kernel
Arch Linux offers various kernel options:
Kernel Type | Package Name | Purpose |
---|---|---|
Latest Stable Kernel | linux |
Default, rolling release |
LTS (Long-Term Support) | linux-lts |
More stable, recommended for production |
Hardened Kernel | linux-hardened |
Security-focused |
Zen Kernel | linux-zen |
Performance optimized |
Install the LTS Kernel
If you prefer a more stable setup:
sudo pacman -S linux-lts linux-lts-headers
Other Kernel Options
- Hardened Kernel:
sudo pacman -S linux-hardened
- Zen Kernel:
sudo pacman -S linux-zen
3️⃣ Verify Kernel Installation
Once installed, check if the new kernel appears in /boot
:
ls /boot
You should see files like:
EFI initramfs-linux-lts-fallback.img initramfs-linux.img vmlinuz-linux
initramfs-linux-fallback.img initramfs-linux-lts.img loader vmlinuz-linux-lts
4️⃣ Configure systemd-boot
🔹 Check Available Boot Entries
ls /boot/loader/entries/
You should see something like:
arch.conf
If arch-lts.conf
is missing, you need to create it.
🔹 Create a Boot Entry for Linux-LTS
- Manually create the entry file:
sudo vim /boot/loader/entries/arch-lts.conf
- Add the following content:
title Arch Linux LTS
linux /vmlinuz-linux-lts
initrd /initramfs-linux-lts.img
options root=UUID=<your-root-partition-uuid> rw quiet splash
Find your root partition UUID using:
lsblk -o NAME,MOUNTPOINTS,UUID
-
Save and exit
esc:wq
.
5️⃣ Set Default Kernel (Optional)
If you want linux-lts to be the default kernel:
- Open systemd-boot loader config:
sudo vim /boot/loader/loader.conf
- Change the default entry:
default arch-lts.conf
timeout 3
- Save the file and reboot.
6️⃣ Reboot & Select Kernel
Restart your system:
sudo reboot
At the systemd-boot menu, you should now see Arch Linux LTS listed. Select it to boot.
7️⃣ Verify the Running Kernel
After booting, check if you're using the new kernel:
uname -r
If you installed linux-lts, the output should be something like:
6.12.x-lts
8️⃣ Remove Old Kernel (Optional)
If you no longer need the old kernel:
sudo pacman -R linux
Then update systemd-boot:
bootctl update
Top comments (0)