Difference between revisions of "How to unpack and pack an initrd"

From openQRM
(adding initrd)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Breif instructions to unpack and repack an image as an initrd;
+
[[Category:tutorial]]
 +
 
 +
Brief instructions to unpack and repack an image as an initrd;
  
  
Line 9: Line 11:
 
'''Pack an initrd'''
 
'''Pack an initrd'''
  
cd initrd
+
<code>cd initrd
  
 
find . | cpio -o -H newc | gzip -9 > ../KERNEL_NAME.img
 
find . | cpio -o -H newc | gzip -9 > ../KERNEL_NAME.img
 +
<code>

Latest revision as of 09:31, 28 November 2023


Brief instructions to unpack and repack an image as an initrd;


Unpack an initrd

unmkinitramfs initrd .


Pack an initrd

cd initrd

find . | cpio -o -H newc | gzip -9 > ../KERNEL_NAME.img