On 04/28/16 18:14, Christian Hesse wrote:
Allan McRae <allan@archlinux.org> on Sat, 2016/04/23 17:03:
According to the news announcement, today is the day we can start using hooks! (as long as you live in the future like me - those of you in the past will need to catch up a day).
I have started a wiki page to discuss which hooks to add [1]. [...]
[1] https://wiki.archlinux.org/index.php/DeveloperWiki:Pacman_Hooks
I can not edit the wiki page, so discussing here.
How about a hook that rebuilds kernel initramfs images? Something like:
[Trigger] Type = File Operation = Install Operation = Upgrade Target = boot/vmlinuz-linux Target = usr/lib/initcpio/*
[Action] Description = Updating Arch Linux initramfs image When = PostTransaction Exec = /usr/bin/mkinitcpio -p linux
+1 and there is a more important rebuild here, that I am doing in my installations, previously doing manually, since I am using systemd on initramfs, when systemd is update I need to rebuild initramfs (also for kmod just to be safe).