Global mkinitcpio preset?

tldr;
Where do the .preset files in /etc/mkinitcpio.d/ come from? The arch wiki mentions a pacman hook to generate the preset files but looking through /usr/share/libalpm/hooks/ gives me no results when searching for “peset”.

Background:
I replaced the grub bootloader with shim + systemd-boot to get secure boot working and also modified the mkinitcpio config to generate UKIs. When I now install a new kernel (e.g. linux612) another preset file is generated and used which of course don’t respect my changes in the other preset (linux611).

Do I have to add another pacman hook to change the preset files accordingly on installation of another kernel?

Edit: found the script responsible for creating the preset: /usr/share/libalpm/scripts/mkinitcpio

1 Like

Looking at the /usr/share/libalpm/scripts/mkinitcpio

script closely it uses a preset file itself which is located in /usr/share/mkinitcpio/hook.preset which I edited to always build UKIs. Since this is nowhere documented I’m not sure if this is a good solution.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.