Re: Kernel and initramfs hooks for flash-kernel
On Mon, Jun 27, 2011 at 01:53:58PM +0000, Hector Oron wrote:
> Hello,
>
> 2011/6/27 Ben Hutchings <ben@decadent.org.uk>:
>
> >> While I am not entirely sure, I think proper way to add hooks would be:
> >> * one hook triggered by kernel scripts creating uImage from vmlinuz
> >> post package installation.
> >> * and other hook triggered by kernel scripts creating uInitrd after
> >> initrd- has been created.
>
> > Hook scripts are ordered by name and the 'zz-' prefix is reserved for
> > boot loader hooks so they run last.
>
> Right! I knew that one, but I was missing it. Fixing it on my proof of concept.
>
> > The initramfs post-update hooks are supposed to be called by any
> > initramfs builder, not just initramfs-tools.
>
> Right, thanks for clarifying.
>
> Renaming hook name with prefix zz- and triggering a reinstall, still
> calls update-initramfs with create option, so it does not
> run_bootloader preventing hooks to be executed. Why run_bootloader
> cannot be called when creating initrd?
[...]
This is a bug in initramfs-tools. It should run the post-update
hooks on create and delete as well.
Ben.
--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus
Reply to: