Skip to content

Instantly share code, notes, and snippets.

@sakshatshinde
Last active October 21, 2024 19:52
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! :)

@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

@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.

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