Automatically update EFI files after kernel update
From: https://wiki.archlinux.org/title/EFI_system_partition#Replacing_the_mkinitcpio_hook
As the presets in /etc/mkinitcpio.d/
support shell scripting, the kernel and initramfs can be copied by just editing the presets.
Edit mkinitcpio hook
/etc/mkinitcpio.d/linux.preset (or linux-whatever.preset) +ESP_DIR="/boot/efi/EFI"
#ALL_config="/etc/mkinitcpio.conf"
-ALL_kver="/boot/vmlinuz-linux"
+ALL_kver="$ESP_DIR/vmlinuz-linux"
PRESETS=('default' 'fallback')
-default_image="/boot/initramfs-linux.img"
+default_image="$ESP_DIR/initramfs-linux.img"
-fallback_image="/boot/initramfs-linux-fallback.img"
+fallback_image="$ESP_DIR/initramfs-linux-fallback.img"
fallback_options="-S autodetect"