[arch-general] mkinitcpio: WARNING: deprecated 'install' function. This should be renamed 'build' for custom hook

Tom Gundersen teg at jklm.no
Sun Aug 21 09:06:25 EDT 2011


On Sun, Aug 21, 2011 at 1:42 PM, Marek Otahal <markotahal at gmail.com> wrote:
> Hi,
>
> I have a custom hook [1] (opencrypt to setup encrypted partitions for me)
> and last days (well, a couple of months maybe:P) I'm getting this on
> every mkinitcpio
> generation:
>
> -> Parsing hook: [opencrypt]
> ==> WARNING: Hook 'opencrypt' uses a deprecated 'install' function.
> This should be renamed 'build'
>  -> Parsing hook: [resume]
>
> Fortunately, the system still works ok, I am just curious what's the
> complaint about?
> I checked the official hooks in /lib/initcpio/hooks
> and none uses build(), they do all run_hook().

Have a look in /lib/initcpio/install/ instead. The complaint is that
your custom file has an install() function. Just rename it to build()
and everything should be fine.

HTH,

Tom


More information about the arch-general mailing list