[arch-dev-public] [PATCH 1/1] move initramfs generation from install script to pacman hook

Christian Hesse list at eworm.de
Thu May 19 07:55:24 UTC 2016


Sébastien Luttringer <seblu at seblu.net> on Thu, 2016/05/19 01:20:
> On mer., 2016-05-18 at 13:55 +0200, Christian Hesse wrote:
> > From: Christian Hesse <mail at eworm.de>
> > 
> >    # add vmlinux
> >    install -D -m644 vmlinux
> > "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux" 
> > +
> > +  # install pacman hook
> > +  install -D -m644 "${srcdir}/linux-initramfs.hook"
> > "${pkgdir}/usr/share/libalpm/hooks/linux-initramfs.hook"
> >  }
>> 
> Hello,
> 
> I didn't pay much attention to this, but except dkms, hooks are not ordered.
> 
> Could we use a prefix convention to order our hooks? It's usefull to build
> modules before building initramfs and eventually run grub update at the end.
> 
> Something like:
> 
> 50-XXX.hook - order doesn't matter
> 70-dkms.hook - ootm modules build
> 80-initramfs.hook - initramfs inclusion.

+1 from me. I was about to suggest the same.

Actually we have zz-etckeeper-post-install.hook for package etckeeper to make
it run last and catch all changes in /etc... A numeric prefix would be very
useful.
-- 
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);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-dev-public/attachments/20160519/eb05aec6/attachment.asc>


More information about the arch-dev-public mailing list