[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] How to merge the Xen kernel with modules into one single file ?


  • To: xen-users@xxxxxxxxxxxxx
  • From: Denny Schierz <linuxmail@xxxxxxxx>
  • Date: Tue, 21 Feb 2012 08:17:34 +0100
  • Delivery-date: Tue, 21 Feb 2012 07:19:03 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

hi,

Am 21.02.2012 um 04:23 schrieb Fajar A. Nugraha:

> Do you guys have some hints on how to do that? BTW, I can merge the domain0 
> kernel & initrd.img into one file.


build or take the normal initrd you need (/boot/initrd*):

------------
mkdir -p /usr/src/initramfs
cd /usr/src/initramfs
zcat /boot/initrd.img-$(uname -r) | cpio -i
------------

your initrd is now extracted to /usr/src/initramfs

now, build you own kernel (howtos on Google) with option:

CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs"

You can also choose, which compress tool you want to use (gzip, bzip2...). 
After that, build your kernel.
In the end, you one file, with kernel and initrd inside. But, for every change 
in the initram fs, you have to execute "make" in the kernel source.

cu denny
 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.