You are not logged in.

#1 2024-05-16 02:10:43

cloverskull
Member
Registered: 2018-09-30
Posts: 206

mkinitcpio - specific config/modules/hooks for specific kernels?

Hey friends, I'm wondering if it's possible to have a specific configuration per kernel? For example, I'd like to have linux, linux-ck, linux-zen, etc., use systemd init (vs busybox) but I prefer to have linux-lts use the standard defaults. Is this possible?

I use systemd-boot so manually managing boot configurations is easy enough for me.

Offline

#2 2024-05-16 05:54:08

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 647

Re: mkinitcpio - specific config/modules/hooks for specific kernels?

The .preset files in /etc/mkinitcpio.d/ have a commented out ALL_config (and preset_config) option that you can use to specify a different configuration file.
Mind that if you place them in /etc/mkinitcpio.conf.d/ (e.g. ALL_config=/etc/mkinitcpio.conf.d/another.conf), then .preset files without a specified *_config (i.e. the default) will use /etc/mkinitcpio.conf + /etc/mkinitcpio.conf.d/*.conf.

Offline

Board footer

Powered by FluxBB