Sample Header Ad - 728x90

How to prevent the re-creation of default mkinitcpio preset file upon kernel update?

1 vote
1 answer
437 views
Since I’m using custom mkinitcpio presets to generate UKIs, I deleted the default preset file inside /etc/mkinitcpio.d/ that came during system installation. Unfortunately, when pacman updates the kernel, the default preset file comes back, and the associated initramfs images get recreated automatically on top of my UKIs. The minor consequence is the waste of space on my boot partition, the major one is the inability to boot my system again if I forget to delete the undesired images before shutdown. I haven’t found how is triggered the creation of the preset file. The linux kernel package file does not include it. However there is a skeleton preset at /usr/share/mkinitcpio/hook.preset but I have no idea if it is really used during kernel update and how to prevent the generation of a new one.
Asked by Bogey Jammer (199 rep)
Jun 20, 2024, 09:17 PM
Last activity: Sep 17, 2024, 07:45 PM