Bug 199831 - initrd.txt hopelessly out of date
Summary: initrd.txt hopelessly out of date
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-23 00:46 UTC by Tom Horsley
Modified: 2015-01-04 22:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-26 03:50:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tom Horsley 2006-07-23 00:46:27 UTC
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):

kernel-doc-2.6.17

How reproducible:

always

Steps to Reproduce:
1. try to understand initrd images by reading kernel docs
  
Actual results:

Total confusion and misinformation.

Expected results:

Useful data :-).

Additional info:

Much web diving finally produced this command to examine an initrd
image:

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.

Comment 1 Dave Jones 2006-07-26 03:50:19 UTC
send patches to linux-kernel.org



Note You need to log in before you can comment on or make changes to this bug.