make-kpkg not making initrd

Kernels & Hardware, configuring network, installing services

make-kpkg not making initrd

Postby dbbolton » 2009-06-11 02:38

I'm building a kernel, followed this guide: viewtopic.php?f=16&t=36525

I've tried using the vanilla kernel source (2.6.29.4) and the Debian kernel source (2.6.29). I copied the config from my working kernel (2.6.26-2-amd64) and ALL I changed was processor type, preemption model, timer frequency, and removed some unneeded network and soundcard modules. Here is the exact command I used to compile it:

Code: Select all
time fakeroot make-kpkg --append-to-version "-dbb" --revision "20090610" --initrd kernel_image kernel_headers


When I tried to boot my kernel, it panicked, printing a message about being unable to mount the root filesystem. I noticed that in /boot my working kernel has an intrd file, which is also the kernel in its grub entry, but my custom kernel does not- even though I used --initrd.

What could be the problem?
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2130
Joined: 2007-06-20 08:17
Location: Iapetus

Re: make-kpkg not making initrd

Postby garrincha » 2009-06-11 12:06

It's a bug. See similar bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523735

I also had the same problem once or twice. My quick workaround is to build an initrd image, this will create an initrd image for your kernel:
Code: Select all
update-initramfs -c -k 'uname -r'

Replace 'uname -r' with your kernel version. This is assuming that your kernel image is something like 'vmlinuz-2.6.29.1' etc.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2341
Joined: 2006-06-02 16:38

Re: make-kpkg not making initrd

Postby dbbolton » 2009-06-11 12:18

garrincha wrote:It's a bug. See similar bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523735

I also had the same problem once or twice. My quick workaround is to build an initrd image, this will create an initrd image for your kernel:
Code: Select all
update-initramfs -c -k 'uname -r'

Replace 'uname -r' with your kernel version. This is assuming that your kernel image is something like 'vmlinuz-2.6.29.1' etc.


I'll give this a go. Thanks a lot.
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2130
Joined: 2007-06-20 08:17
Location: Iapetus

Re: make-kpkg not making initrd

Postby milomak » 2009-06-11 19:54

i thought i was doing something wrong with my compiles. but now i notice it is this initrd issue.
Laptop (64-bit) - Debian Sid and Win8
Desktop (64-bit) - Debian Sid, ArchLinux, Win8 and Fedora 19
MythTV BE/FE - Debian Stable
MythTV FE - Debian Sid
milomak
 
Posts: 1389
Joined: 2009-06-09 22:20

Re: make-kpkg not making initrd

Postby bugsbunny » 2009-07-17 15:32

It's not so much a bug as a design decision by the maintainer, which at least some people aren't happy with.

You need to copy some hook scripts to /etc/kernel/

Read through the information in /usr/share/doc/kernel-package/
There are example scripts in there as well, which will work in most cases as is (just copy them over).

Immediate solution is to just run update-initramfs (see man page for syntax)
User avatar
bugsbunny
 
Posts: 5355
Joined: 2008-07-06 17:04

Re: make-kpkg not making initrd

Postby Stian1979 » 2009-07-28 14:44

garrincha wrote:It's a bug. See similar bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523735

I also had the same problem once or twice. My quick workaround is to build an initrd image, this will create an initrd image for your kernel:
Code: Select all
update-initramfs -c -k 'uname -r'

Replace 'uname -r' with your kernel version. This is assuming that your kernel image is something like 'vmlinuz-2.6.29.1' etc.


It don't work for me.
Code: Select all
update-initramfs: Generating /boot/initrd.img-linux-image-2.5.30 -r
Cannot find /lib/modules/linux-image-2.5.30 -r                     


The folder is right there in /lib/modules :evil:
Image
Squeeze/sid, liquorix-2.6.33-1.dmz.3
Those who find errors in my spelling can keep them.
Stian1979
 
Posts: 254
Joined: 2007-07-29 14:57

Re: make-kpkg not making initrd

Postby Morticia » 2009-07-28 17:12

bugsbunny's solution of copying the example scripts and tweaking them, as described in this thread and here:
http://forums.debian.net/viewtopic.php?f=5&t=41735

Worked perfectly for me :D

It is better to have a permanent fix than a workaround (IMHO)
What you know is boring, embrace what you don't know.
User avatar
Morticia
 
Posts: 56
Joined: 2008-05-07 15:47
Location: Lost in the ozone

Re: make-kpkg not making initrd

Postby Stian1979 » 2009-07-29 02:39

Morticia wrote:bugsbunny's solution of copying the example scripts and tweaking them, as described in this thread and here:
http://forums.debian.net/viewtopic.php?f=5&t=41735

Worked perfectly for me :D

It is better to have a permanent fix than a workaround (IMHO)


I think I will be sitting around and see if the permanent come soon.
Is there a bug report for this?
Image
Squeeze/sid, liquorix-2.6.33-1.dmz.3
Those who find errors in my spelling can keep them.
Stian1979
 
Posts: 254
Joined: 2007-07-29 14:57

Re: make-kpkg not making initrd

Postby bugsbunny » 2009-07-29 04:20

Bug report is linked earlier in this thread. If you manually inserted the kernel version into the update-initramfs command then make sure you're not tacking -r onto the end (which it looks like you did, the -r is what's causing the problem).

I think you'll be waiting a while for a "fix", although there is talk of (maybe) adding some script packages (see the bug thread).
User avatar
bugsbunny
 
Posts: 5355
Joined: 2008-07-06 17:04

Re: make-kpkg not making initrd

Postby milomak » 2009-08-13 23:29

I copied /usr/share/doc/kernel-package/examples/etc/kernel/postinst.d/initramfs to /etc/kernel/postinst.d/

initrd images are now created
Laptop (64-bit) - Debian Sid and Win8
Desktop (64-bit) - Debian Sid, ArchLinux, Win8 and Fedora 19
MythTV BE/FE - Debian Stable
MythTV FE - Debian Sid
milomak
 
Posts: 1389
Joined: 2009-06-09 22:20


Return to System configuration

Who is online

Users browsing this forum: No registered users and 37 guests

fashionable