dotfiles-arch/.root/etc/pacman.d/hooks/uki.hook
2024-04-09 18:22:44 -04:00

16 lines
343 B
Text

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=amd-ucode
Target=linux
Target=linux-lts
[Action]
Description=Update Kernel and Microcode in initramfs
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'