[arch-dev-public] Hooks!
Ike Devolder
ike.devolder at gmail.com
Fri Apr 29 08:20:35 UTC 2016
On Thu, Apr 28, 2016 at 11:14:36PM +0200, Christian Hesse wrote:
> Allan McRae <allan at 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
> --
> main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
> "CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];)
> putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
It only benefits one package, so seems pointless to move it in hooks. If
you have custom kernels installed you must run mkinitcpio anyway for all
of them.
--
Ike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-dev-public/attachments/20160429/40b01562/attachment.asc>
More information about the arch-dev-public
mailing list