Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

initramfs in new kernels (solved)

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
capira
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Mon May 02, 2005 9:31 pm
Location: Spain

initramfs in new kernels (solved)

  • Quote

Post by capira » Thu Oct 06, 2005 3:44 pm

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.
Top
widan
Veteran
Veteran
User avatar
Posts: 1512
Joined: Tue Jun 07, 2005 4:26 pm
Location: Paris, France

  • Quote

Post by widan » Thu Oct 06, 2005 7:45 pm

You can try to go in the "root" directory of the initrd, and run:

Code: Select all

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.
Top
capira
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Mon May 02, 2005 9:31 pm
Location: Spain

  • Quote

Post by capira » Sat Oct 08, 2005 8:44 am

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.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy