Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to edit a genkernel-generated initramfs
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
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 132

PostPosted: Mon Aug 19, 2019 8:24 pm    Post subject: [Solved] How to edit a genkernel-generated initramfs Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44921
Location: 56N 3W

PostPosted: Mon Aug 19, 2019 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 132

PostPosted: Tue Aug 20, 2019 3:30 am    Post subject: Reply with quote

Thanks
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