Skip to contentSkip to conversation

patch for Documentation/initrd.txt?

PATCH Tom Horsley 1 participant 1 message Jul 27, 2006 Documentation

lore
Share & tools
lore
#0 lore raw

I spend hours the other day trying to examine a fedora core 5 initrd file in the mistaken belief that the Documentation/initrd.txt file might contain relevant information :-). It didn't, but many web searches later I finally discovered the new key to decrypting initrd files. Would it be possible to add the attached patch (or a better one if someone can explain things in more detail) to the initrd.txt file to avoid future confusion? Thanks.

Documentation/initrd.txt +16 -0
@@ -73,6 +73,22 @@
     initrd is mounted as root, and the normal boot procedure is followed,
     with the RAM disk still mounted as root.
 
+Compressed cpio images
+----------------------
+
+Recent kernels have support for populating a ramdisk from a compressed cpio
+archive, on such systems, the creation of a ramdisk image doesn't need to
+involve special block devices or loopbacks, you merely create a directory on
+disk with the desired initrd content, cd to that directory, and run (as an
+example):
+
+find . | cpio --quiet -c -o | gzip -9 -n > /boot/imagefile.img
+
+Examining the contents of an existing image file is just as simple:
+
+mkdir /tmp/imagefile
+cd /tmp/imagefile
+gzip -cd /boot/imagefile.img | cpio -imd --quiet
 
 Installation
 ------------