Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • 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! :)

@D3vil0p3r
Copy link

After this, is it needed to remove linux and linux-headers packages?

@sakshatshinde
Copy link
Author

sakshatshinde commented Nov 13, 2022

After this, is it needed to remove linux and linux-headers packages?

Sure you can delete old kernel and headers if not needed but it's recommended to have it on for backup in case something messes up

@ubranch
Copy link

ubranch commented Jan 21, 2023

useful

@dest4590
Copy link

dest4590 commented Jun 5, 2023

thank you!

@Caixetadev
Copy link

Hello, I have this error when installing the kernel

==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen-fallback.img'
==> Image generation successful
error: command failed to execute correctly

@sakshatshinde
Copy link
Author

@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

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