Red Hat Bugzilla – Bug 199831
initrd.txt hopelessly out of date
Last modified: 2015-01-04 17:28:02 EST
Description of problem:
When attempting to figure out what was going on at boot time I wanted
to fiddle with the initrd image. The kernel doc file
Documentation/initrd.txt only talks about loopback devices and
filesystem images. Meanwhile, the files actually being used by
the kernel these days are simply compressed cpio archives. (A fact
only learned after much web searching).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. try to understand initrd images by reading kernel docs
Total confusion and misinformation.
Useful data :-).
Much web diving finally produced this command to examine an initrd
gzip -cd ../old/initrd.img|cpio -imd --quiet
And this command to rebuild the image after modifying it:
find . | cpio --quiet -c -o | gzip -9 -n > ../initrd.img
They actually seemed to work. It would sure be handy if the initrd.txt
file mentioned those commands up front and then went on to the historical
information for older kernels it already contains.
send patches to firstname.lastname@example.org