You are not logged in.

#1 2009-07-15 17:35:36

Rvn
Member
From: Austria
Registered: 2009-05-01
Posts: 4

Integrate ramdisk into kernel?

Hi guys,

I just read about mkinitcpio on Arch Wiki where is stated, that one can integrate the ramdisk in the kernel. But I can't find anything about how to do it. Another question is, what is the advantage/disadvantage when you build such a "self-contained kernel image"?

Greetings, Rvn

Offline

#2 2009-07-15 20:36:30

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Integrate ramdisk into kernel?

If I remember it right, you need to let mkinitcpio generate the filelist and include that list in the kernel configuration. I never tried it and have no idea if it works.

Offline

#3 2009-07-16 02:10:40

Rvn
Member
From: Austria
Registered: 2009-05-01
Posts: 4

Re: Integrate ramdisk into kernel?

You mean the content of the generated cpio archive? So you would have to compile the kernel with that list for yourself? Sounds like work wink

Offline

#4 2009-07-16 18:31:27

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Integrate ramdisk into kernel?

No, mkinitcpio generates a filelist that can be used as input for gen-init-cpio (-s option of mkinitcpio). This filelist can be specified as an option in the kernel configuration. The initramfs is then generated while the kernel is being built and included into the kernel. At least, that's the theory.

Offline

#5 2009-07-16 22:46:52

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Integrate ramdisk into kernel?

It won't work, because mkinitcpio deletes some temporary files that are included in the file list.

Offline

Board footer

Powered by FluxBB