Re: missing the initrd file in the kernel package
On Wed, Apr 29 2009, Antonio Diaz wrote:
> When I compile the kernel the file "initrd" is not created in spite
> of I'm specifying the "--initrd" option in the command line. Exactly,
> the command that I'm using to compile the kernel is:
>
> "make-kpkg --initrd --revision=1:xps.10 kernel_image"
>
> May be there is a problem with the application that creates the
> initrd file.
>
> Any suggestions?
,----[ Manual page make-kpkg(1) ]
| --initrd
| If make-kpkg is generating a kernel-image package, arrange to
| convey to the hook scripts that this image requires an initrd,
| and that the initrd generation hook scripts should not short
| circuit early. Without this option, the example initramfs hook
| scripts bundled in with ker‐ nel-package will take no action on
| installation. The same effect can be achieved by setting the
| environment variable INITRD to any non empty value. Please note
| that unless there are hook scripts in /etc/kenel or added into
| the hook script parameter of /etc/kernel-img.conf. no initrd
| will be created.
`----
So, drop in scripts in /etc/kernel/post{inst,rm}.d/ to
create/delete the initramfs files. You can use yaird, or
initramfs-tools. For the latter, there are example scripts that you
could use as a starting point:
/usr/share/kernel-package/examples/etc/kernel/post{inst,rm}.d/initramfs
manoj
--
And then there was the lawyer that stepped in cow manure and thought he
was melting...
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: