From: Tom Horsley <tom.horsley@ccur.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: akpm@osdl.org
Subject: [PATCH] documentation: Documentation/initrd.txt
Date: Thu, 27 Jul 2006 11:26:43 -0400 [thread overview]
Message-ID: <1154014003.5166.30.camel@tweety> (raw)
[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]
From: Thomas Horsley <tom.horsley@ccur.com>
I spent a long time the other day trying to examine an initrd
image on a fedora core 5 system because the initrd.txt file
is apparently obsolete. Here is a patch which I hope
will reduce future confusion for others.
Signed-off-by: Thomas Horsley <tom.horsley@ccur.com>
---
I'm resubmitting this according to the SubmittingPatches
guidelines. This was made from the 2.6.17.7 tree, but
I don't think initrd.txt has changed much in any of the
trees. I know I'm not supposed to send an attachment, but
I see evolution has already screwed up my cut and paste
attempt and who knows what will happen by the time it
goes through exchange, so I'm adding the patch as an
attachment as well.
--- Documentation/initrd.txt 2006-07-27 08:49:30.000000000 -0400
+++ Documentation/initrd.txt 2006-07-27 09:02:04.000000000 -0400
@@ -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
------------
[-- Attachment #2: initrd-doc-patch --]
[-- Type: text/plain, Size: 924 bytes --]
--- Documentation/initrd.txt 2006-07-27 08:49:30.000000000 -0400
+++ Documentation/initrd.txt 2006-07-27 09:02:04.000000000 -0400
@@ -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
------------
next reply other threads:[~2006-07-27 15:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-27 15:26 Tom Horsley [this message]
[not found] <6DfYt-7zU-49@gated-at.bofh.it>
2006-07-27 17:08 ` [PATCH] documentation: Documentation/initrd.txt Bodo Eggert
2006-07-27 17:15 ` Tom Horsley
2006-07-27 17:29 ` Dave Jones
2006-07-27 21:09 ` Bodo Eggert
-- strict thread matches above, loose matches on Subject: below --
2007-05-21 1:51 Domenico Andreoli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1154014003.5166.30.camel@tweety \
--to=tom.horsley@ccur.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox