summaryrefslogtreecommitdiff
path: root/.root/etc/pacman.d
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-04-09 18:22:44 -0400
committerFreya Murphy <freya@freyacat.org>2024-04-09 18:22:44 -0400
commitcc6a9cc422621d0c7bd53600c6ddc217bb404061 (patch)
tree73ee1fe26a3eb41277e3f597e400072df11e19da /.root/etc/pacman.d
parentundo a (diff)
downloaddotfiles-arch-cc6a9cc422621d0c7bd53600c6ddc217bb404061.tar.gz
dotfiles-arch-cc6a9cc422621d0c7bd53600c6ddc217bb404061.tar.bz2
dotfiles-arch-cc6a9cc422621d0c7bd53600c6ddc217bb404061.zip
a again
Diffstat (limited to '.root/etc/pacman.d')
-rw-r--r--.root/etc/pacman.d/hooks/uki.hook16
1 files changed, 16 insertions, 0 deletions
diff --git a/.root/etc/pacman.d/hooks/uki.hook b/.root/etc/pacman.d/hooks/uki.hook
new file mode 100644
index 0000000..3ca2bf8
--- /dev/null
+++ b/.root/etc/pacman.d/hooks/uki.hook
@@ -0,0 +1,16 @@
+[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'
+