Gentoo Archives: gentoo-catalyst

From: Paul Smith <psmith@××××××.com>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] How is initrd built?
Date: Thu, 07 Jul 2005 14:35:55
Message-Id: vpdroe9eelb3.fsf@lemming.engeast.baynetworks.com
In Reply to: Re: [gentoo-catalyst] How is initrd built? by Chris Gianelloni
1 %% Chris Gianelloni <wolf31o2@g.o> writes:
2
3 cg> On Thu, 2005-07-07 at 09:50 -0400, Paul Smith wrote:
4 >> In the new version, the initrd doesn't appear to be an ext2 filesystem
5 >> anymore... it's some kind of compressed cpio file?!?! Anyway, that's
6 >> what "file" tells me.
7
8 cg> It is an initramfs image. You can work with it just like any
9 cg> other cpio archive.
10
11 Well, yeah, I tried to do that, but it doesn't work. What am I doing
12 wrong (I haven't used cpio for years...)
13
14 I unpack the tarball and then:
15
16 # gzcat isolinux/gentoo.igz | cpio -tv
17 drwxr-xr-x 11 root root 0 Jul 6 20:09 .
18 drwxr-xr-x 2 root root 0 Jul 6 20:09 dev
19 crw-rw---- 1 root root 5, 1 Jul 6 20:09 dev/console
20 crw-rw---- 1 root root 1, 3 Jul 6 20:09 dev/null
21 drwxr-xr-x 2 root root 0 Jul 6 20:09 bin
22 drwxr-xr-x 2 root root 0 Jul 6 20:09 etc
23 -rw-r--r-- 1 root root 93 Jul 6 20:09 etc/fstab
24 drwxr-xr-x 4 root root 0 Jul 6 20:09 usr
25 drwxr-xr-x 2 root root 0 Jul 6 20:09 usr/bin
26 drwxr-xr-x 2 root root 0 Jul 6 20:09 usr/sbin
27 drwxr-xr-x 2 root root 0 Jul 6 20:09 proc
28 drwxr-xr-x 2 root root 0 Jul 6 20:09 temp
29 drwxr-xr-x 2 root root 0 Jul 6 20:09 sys
30 drwxr-xr-x 3 root root 0 Jul 6 20:09 var
31 drwxr-xr-x 3 root root 0 Jul 6 20:09 var/lock
32 drwxr-xr-x 2 root root 0 Jul 6 20:09 var/lock/dmraid
33 drwxr-xr-x 2 root root 0 Jul 6 20:09 sbin
34
35 Where's everything else? If I actually extract the archive I get the
36 same results: just this small directory skeleton and no actual contents
37 other than the ones in bin.
38
39 The file, of course, is huge and the system does boot properly so it's
40 all in there somewhere, but...???
41
42
43 I feel dumb :-/.
44
45 --
46 -------------------------------------------------------------------------------
47 Paul D. Smith <psmith@××××××.com> HASMAT--HA Software Mthds & Tools
48 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
49 -------------------------------------------------------------------------------
50 These are my opinions---Nortel Networks takes no responsibility for them.
51 --
52 gentoo-catalyst@g.o mailing list

Replies

Subject Author
Re: [gentoo-catalyst] How is initrd built? Eric Edgar <rocket@g.o>