Re: mkinitcpio: WARNING: deprecated 'install' function. This should be renamed 'build' for custom hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sunday 21 of August 2011 15:06:25 Tom Gundersen wrote:
> On Sun, Aug 21, 2011 at 1:42 PM, Marek Otahal <markotahal@xxxxxxxxx> 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
Oh, so that was it! Many thanks Tom :)
-- 

Marek Otahal :o)


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux