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

Re: missing the initrd file in the kernel package



Manoj Srivastava wrote:


>         Now, nothing is created automatically. you need to provide a
>  hook script for this to happen.  The user provides such scripts. For
>  example, to invoke mkinitramfs, I did:
> --8<---------------cut here---------------start------------->8---
>  cp /usr/share/kernel-package/examples/etc/kernel/postinst.d/initramfs \
>     /etc/kernel/postinst.d/
>  cp /usr/share/kernel-package/examples/etc/kernel/postrm.d/initramfs \
>     /etc/kernel/postrm.d/
> --8<---------------cut here---------------end--------------->8---
> 
>         To run grub, I have in /etc/kernel-img.conf:
> --8<---------------cut here---------------start------------->8---
> postinst_hook = update-grub
> postrm_hook   = update-grub
> --8<---------------cut here---------------end--------------->8---
> 
>         You can look at other example in the examples directory:
>  /usr/share/kernel-package/examples/
>  to see if there are other example script you want to cp into
>  /etc/kernel -- and you can create your own scripts.
> 
Now everything is clear to me ;)
Big thanks!




Reply to: