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