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! :)

@Supervisor360
Copy link

i cant find cd boot/loader/entries
i can only find the boot folder. is there some new update or something?

@BoolmanO
Copy link

i cant find cd boot/loader/entries i can only find the boot folder. is there some new update or something?

same problem

@erik1171
Copy link

erik1171 commented Apr 14, 2024

i cant find cd boot/loader/entries i can only find the boot folder. is there some new update or something?

same problem

It's just cd '/boot/loader/entries'

The step before he went to his root directory was the command "cd /" and then moved along with "cd boot/loader/entries"

that might solve your issue

@Ahnue999
Copy link

Ahnue999 commented Jun 1, 2024

i cant find cd boot/loader/entries i can only find the boot folder. is there some new update or something?

same problem

It's just cd '/boot/loader/entries'

The step before he went to his root directory was the command "cd /" and then moved along with "cd boot/loader/entries"

that might solve your issue

Still none, is it because i use "grub" as a loader or such thing (?)
there is only [ efi and grub directories, 3 images and a vmlinuz-linux file
my first week with linux so yeah...

@fluffyloopy
Copy link

i cant find cd boot/loader/entries i can only find the boot folder. is there some new update or something?

same problem

It's just cd '/boot/loader/entries'
The step before he went to his root directory was the command "cd /" and then moved along with "cd boot/loader/entries"
that might solve your issue

Still none, is it because i use "grub" as a loader or such thing (?) there is only [ efi and grub directories, 3 images and a vmlinuz-linux file my first week with linux so yeah...

yeah for grub all you need to do is grub-mkconfig -o /boot/grub/grub.cfg after you finished installing and it should work.

@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