Allow overriding presets with drop-ins
I wish to disable fallback generation in all presets, but I do not wish to do this by overriding the system .preset files and dealing with .pacnews on updates.
My idea is something like linux.preset.override
in the same /etc/mkinitcpio.d
directory as the preset, where one could throw PRESETS=('default')
which would take precedence over the linux.preset
file.
Or a more versatile option allowing for multiple preset file overrides by taking inspiration from systemd and creating /etc/mkinitcpio.d/linux.preset.d/override.conf
- would match all *.conf files alphabetically.
My workaround for now by just using Ansible to find and replace all presets, regenerate initramfs and delete the fallbacks (dealing with pacnews missing): https://gitlab.com/C0rn3j/configs/-/commit/14ab24e37c27760b2429b3d09ccea499e58e7430