Gentoo Archives: gentoo-catalyst

From: Chris Gianelloni <wolf31o2@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] How is initrd built?
Date: Thu, 07 Jul 2005 19:41:29
Message-Id: 1120765263.11567.56.camel@cgianelloni.nuvox.net
In Reply to: Re: [gentoo-catalyst] How is initrd built? by Paul Smith
1 On Thu, 2005-07-07 at 15:14 -0400, Paul Smith wrote:
2 > %% Eric Edgar <rocket@g.o> writes:
3 >
4 > ee> You technically cannot extract the cpio archive as far as I can tell
5 > ee> because it really is multiple cpio archives concatenated together.
6 >
7 > Ah! OK.
8 >
9 > ee> cd ${INITRAMFS_OVERLAY}
10 > ee> find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-overlay.cpio.gz
11 > ee> cat old-oldinitramfs.cpio.gz initramfs-overlay.cpio.gz > new-initramfs.cpio.gz
12 >
13 > Wait, that's not right is it?
14
15 That's right.
16
17 From the genkernel code:
18
19 cat ${MERGE_LIST} > ${TEMP}/initramfs-${KV}
20
21 Each of those files in ${MERGE_LIST} are cpio.gz files.
22
23 > Is the initramfs really a concatenation of compressed cpio files? I
24 > don't think it is... gzip can't handle that.
25
26 Yes, it is.
27
28 > It must be a compression of a concatenation of cpio files, right? In
29 > that case the above command line is not correct... I'd need to create
30 > the cpio file, concatenate it to an uncompressed copy of the existing
31 > initramfs, then compress the whole thing again.
32 >
33 > Yes?
34
35 Nope.
36
37 =]
38
39 --
40 Chris Gianelloni
41 Release Engineering - Strategic Lead/QA Manager
42 Games - Developer
43 Gentoo Linux

Attachments

File name MIME type
signature.asc application/pgp-signature