View previous topic :: View next topic |
Author |
Message |
Gooberpatrol66 Tux's lil' helper
Joined: 20 Jul 2014 Posts: 143
|
Posted: Mon Aug 19, 2019 8:24 pm Post subject: [Solved] How to edit a genkernel-generated initramfs |
|
|
I am troubleshooting a boot failure, and I want to look at what the initramfs is doing. How can I open it up and edit it? Or how can I edit the source files it's generated from?
Last edited by Gooberpatrol66 on Tue Aug 20, 2019 3:31 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54801 Location: 56N 3W
|
Posted: Mon Aug 19, 2019 9:53 pm Post subject: |
|
|
Gooberpatrol66,
Its an initramfs. That's a compressed cpio archive of other cpio archives.
Run the initramfs file through cpio. Rinse and repeat on the component parts if you need to.
You will only need to edit the init script to add some debug text.
As all the Haynes Manuals say, reassembly is the reverse of the disassembly steps. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Gooberpatrol66 Tux's lil' helper
Joined: 20 Jul 2014 Posts: 143
|
Posted: Tue Aug 20, 2019 3:30 am Post subject: |
|
|
Thanks |
|
Back to top |
|
|
|