summarylogtreecommitdiffstats
path: root/60-kernel-install-remove.hook
diff options
context:
space:
mode:
authorSebastian Wiesner2022-12-19 17:36:02 +0100
committereNV252022-12-19 23:10:35 +0400
commite5e3f4e2cbbfa778def105dbf58f687f98d97a72 (patch)
treebf1f0ac70a29390842381745fa32a882039dbb73 /60-kernel-install-remove.hook
parentee45f80a638fab638f0855283cc82e78e993fdd3 (diff)
downloadaur-e5e3f4e2cbbfa778def105dbf58f687f98d97a72.tar.gz
upgpkg: pacman-hook-kernel-install 0.9.0-1
upstream release - Use bash in the hook script and profit of its features: Use bash substitutions to extract the kernel version, and collect target kernel images into an array. Tighten bash shell options. - Run kernel-install remove post-transaction; this keeps kernels and initrds in place if something goes wrong while pacman installs packages. - Run kernel-install on more occasions: Add a couple of packages related to early-boot as triggers, i.e. anything that might go into the initrd.
Diffstat (limited to '60-kernel-install-remove.hook')
-rw-r--r--60-kernel-install-remove.hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/60-kernel-install-remove.hook b/60-kernel-install-remove.hook
index fd6bb58d6649..f007852cb432 100644
--- a/60-kernel-install-remove.hook
+++ b/60-kernel-install-remove.hook
@@ -14,6 +14,6 @@ Target = usr/lib/modules/*/vmlinuz
[Action]
Description = Removing kernel and initrd from $BOOT... (kernel-install)
-When = PreTransaction
+When = PostTransaction
Exec = /usr/share/libalpm/scripts/kernel-install.sh remove
NeedsTargets