Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs in new kernels (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
capira
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 147
Location: Spain

PostPosted: Thu Oct 06, 2005 3:44 pm    Post subject: initramfs in new kernels (solved) Reply with quote

Hi all!

I just wondered if anybody know how to repack the initramfs once you have it unpacked. The initramfs file that genkernel create has the function that initrd one day had. I have found really complicate to handled this kind of file. I have found here a way of unpack the initramfs, but I need to repack it again. Does anybody know the way? Is the linuxrc (the file that I need to change in order to boot my gentoo system) AKA init store in other place before the genkernel made the initramfs file?

Thanks in advance,

Raul


Last edited by capira on Sat Oct 08, 2005 8:45 am; edited 1 time in total
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Thu Oct 06, 2005 7:45 pm    Post subject: Reply with quote

You can try to go in the "root" directory of the initrd, and run:
Code:
find . -print | cpio -o -H newc > /tmp/initramfs

The result will not have the same structure as the original initramfs (it will be a single CPIO archive, instead of a concatenation), but it should work. You can also gzip the initramfs.
Back to top
View user's profile Send private message
capira
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2005
Posts: 147
Location: Spain

PostPosted: Sat Oct 08, 2005 8:44 am    Post subject: Reply with quote

Thanks a lot widan!

Although I had though to do something like I didn't try because I was scare of breaking something.

That works like a charm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum