what step in kernel "make install" creates the initrd.img file?

Oliver Grawert ogra at ubuntu.com
Tue Mar 13 16:15:02 UTC 2012


hi,
On Tue, 13 Mar 2012 11:05:36 -0400 (EDT)
"Robert P. J. Day" <rpjday at crashcourse.ca> wrote:

>   all i want to know is, who or what creates that initrd.img file?
> historically, i was used to the "mkinitrd" command but that's not even
> on my system.  i can see "mkinitramfs" but i don't see where that's
> being invoked anywhere in the kernel source tree.
> 
>   i'm sure i'm missing something obvious.  what creates that file, and
> where does it get its default contents from?  thanks.

in ubuntu and debian the initramfs-tools package (and specifically the
update-initramfs tool) are responsible for creating an initramfs, it is
completely created from your filesystem using a few modules from the
kernel you built and a bunch of apps/libs from teh filesystem... 
to roll an initrd, install that kernel, and run:

sudo update-initramfs -c -k <kernel version as used in /lib/modules/>

this will put an initrd file into /boot


ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120313/1b44f2a2/attachment.sig>


More information about the ubuntu-users mailing list