Re: problem compiling new kernel
On Fri, 28 Aug 2009 19:07:45 +0800
Niu Kun <email@example.com> wrote:
> bdebreil 写道:
> > Now, with Lenny, I haven't so far been able to go any further in
> > recompiling usable kernels. 126.96.36.199 did compile without errors, but
> > then I found that I had no 'mkinitrd' on my new system. How am I to
> > generate an initrd.img ? I was unable to find any package that I could
> > install using apt-get with the name 'mkinitrd', there is no such thing
> > either in the cache base. However, when I installed Lenny (72 hours
> > ago), the install program did generate an initrd.img-2.6.26-2-686 that
> > is now installed in my /boot directory, and my /boot/grub/menu.lst file
> > does specify this file in the boot menu.
> update-initramfs maybe the tool you are after.
> Google it or man it.
> It should be installed on your system. Or you can install it with
Assuming that you're building kernel packages with kernel-package, you
may be being hit by this:
"The image postinst no longer runs the initramfs creation commands.
Instead, there are example scripts provided that will perform the task.
These scripts will work for official kernel images as well."
Basically, the short version of what you need to do is:
cp /usr/share/doc/kernel-package/examples/etc/kernel/postinst.d/initramfs /etc/kernel/postinst.d/
[This really needs to be in a faq somewhere, if it
isn't already. It comes up frequently on the list.]
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator