mkinitrd doesn't copy modules to initrd tree [new problem]

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

mkinitrd doesn't copy modules to initrd tree [new problem]

Post by GJones »

Edit: duh, I am an idiot. Forgot to run the all-important depmod -a on the new kernel. Duh.

I'm trying to test the Liquorix kernel to see if the patchset has any performance impact. To save time I unpacked the Debian package and manually installed the kernel and modules. The Liquorix kernel needs an initrd, and doesn't have device drivers built in, so I ran mkinitrd for it...

Code: Select all

mkinitrd -c -k 3.0.0-4.dmz.2-liquorix-686 -m ahci:sd_mod:ext4
The initrd was generated, but no modules were mentioned in the output, and boot failed because the root FS could not be mounted. When I looked in the intrd tree and in the decompressed initrd, I discovered that no modules whatsoever had been copied into the tree.

mkinitrd did not produce any error messages, and works fine for the generic Salix kernel. So why is it failing for this kernel?
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: mkinitrd doesn't copy modules to initrd tree [new proble

Post by GJones »

Okay, got something else going on here... Despite the requisite modules being present the system still won't boot, because block devices aren't being generated in /dev - not even with udev added to the initrd.

Is there some kind of generic block device module that I need to add?
User avatar
gapan
Salix Wizard
Posts: 6349
Joined: 6. Jun 2009, 17:40

Re: mkinitrd doesn't copy modules to initrd tree [new proble

Post by gapan »

I don't know what a Liquiorix kernel is, but why don't you take the initrd from there too?
Image
Image
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: mkinitrd doesn't copy modules to initrd tree [new proble

Post by GJones »

Because the Liquorix kernel is for Debian, which auto-generates initrds. One isn't provided with it.

(Thanks though. FWIW I wound up abandoning my attempt to set up the Liquorix kernel; it just wasn't worth it.)
pevsner
Posts: 81
Joined: 12. Apr 2010, 16:08

Re: mkinitrd doesn't copy modules to initrd tree [new proble

Post by pevsner »

AlienBobs slackware wiki on kernelbuilding ( scroll about 1/2 down for creating an initrd) may be of help. He wrote a mkinitrd_command_generator shell script too.
http://wiki.alienbase.nl/doku.php?id=li ... elbuilding
Post Reply