Gentoo Archives: gentoo-catalyst

From: Eric Edgar <rocket@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] How is initrd built?
Date: Thu, 07 Jul 2005 19:34:36
Message-Id: 20050707193419.GA28866@toucan.gentoo.org
In Reply to: Re: [gentoo-catalyst] How is initrd built? by Paul Smith
1 That code is correct. an initramfs can be any number of
2 uncompressed or compressed cpio files concatenated together.
3 The kernel is handling figuring out
4 whats compressed or not etc. So it works because of the code in the
5 kernel. so no you dont need to do that extra work.
6
7 On 15:14 Thu 07 Jul , Paul Smith wrote:
8 > %% Eric Edgar <rocket@g.o> writes:
9 >
10 > ee> You technically cannot extract the cpio archive as far as I can tell
11 > ee> because it really is multiple cpio archives concatenated together.
12 >
13 > Ah! OK.
14 >
15 > ee> cd ${INITRAMFS_OVERLAY}
16 > ee> find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-overlay.cpio.gz
17 > ee> cat old-oldinitramfs.cpio.gz initramfs-overlay.cpio.gz > new-initramfs.cpio.gz
18 >
19 > Wait, that's not right is it?
20 >
21 > Is the initramfs really a concatenation of compressed cpio files? I
22 > don't think it is... gzip can't handle that.
23 >
24 > It must be a compression of a concatenation of cpio files, right? In
25 > that case the above command line is not correct... I'd need to create
26 > the cpio file, concatenate it to an uncompressed copy of the existing
27 > initramfs, then compress the whole thing again.
28 >
29 > Yes?
30 >
31 > --
32 > -------------------------------------------------------------------------------
33 > Paul D. Smith <psmith@××××××.com> HASMAT--HA Software Mthds & Tools
34 > "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
35 > -------------------------------------------------------------------------------
36 > These are my opinions---Nortel Networks takes no responsibility for them.
37 > --
38 > gentoo-catalyst@g.o mailing list
39 >
40 >

Replies

Subject Author
Re: [gentoo-catalyst] How is initrd built? Paul Smith <psmith@××××××.com>