Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sakshatshinde/112f02eda1d442f061df00b42c35a34f to your computer and use it in GitHub Desktop.
Save sakshatshinde/112f02eda1d442f061df00b42c35a34f to your computer and use it in GitHub Desktop.
A guide to install linux-zen kernel on Arch Linux for systemd-boot

A simple guide to install linux-zen (The "Zen" kernel) on Arch Linux for Systemd-boot

Firstly run the following command with the appropriate privilege:

sudo pacman -S linux-zen linux-zen-headers

When asked for confirmation, type 'y', press ENTER

Now the kernel is installed on your system. We need to tell systemd-boot to boot with the newly kernel installed. Open up a terminal and type these commands:

su [Enter password]

cd / ls

At these stage there should be a folder named "boot" Run the following command:

cd boot/loader/entries

There should be a ".conf" file. This could be named anything. In my case it is "arch.conf" NOTE : You can use any text editor / CLI editor you like. Here I am using nano.

nano arch.conf

After opening the file edit these entries to the new one ( '->' = to)

  • linux /vmlinuz-linux -> linux /vmlinuz-linux-zen
  • initrd /initramfs-linux.img -> initrd /initramfs-linux-zen.img

SAVE the file and exit Now we are done. Simply reboot and enjoy! :)

@ShreshthTiwari
Copy link

ShreshthTiwari commented May 4, 2025

Hope This Helps:

First Install the kernel:

sudo pacman -S linux-zen linux-zen-headers

Then update grub config

sudo grub-mkconfig -o /boot/grub/grub.cfg

And reboot and in the boot menu
Select Advanced Options and select Zen Kernel
It will be auto set to default for future use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment