Gentoo Archives: gentoo-catalyst

From: Eliot Gable <egable@×××××.com>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] Initrd overlay for gentoo.igz
Date: Mon, 26 Sep 2005 20:35:49
Message-Id: bf6923ed05092613357463822@mail.gmail.com
1 I am new to the whole "live cd" thing, so please bear with me here.
2
3 I am trying to add a file to the /etc/init.d/ directory that exists *after*
4 the entire Gentoo live cd boots up. I have figured out that the /etc/init.d
5 directory in the ISO image on the CD is a base environment of some sorts,
6 and that the gentoo.igz file in the isolinux directory on the CD contains
7 the real set of files that exist in the /etc/init.d directory once the
8 entire CD finishes booting. I have created a folder to hold my overlay
9 files. This folder looks like so:
10
11 find . -print
12
13 ./etc
14 ./etc/init.d
15 ./etc/init.d/somescript
16
17 Now, I try to create an overlay like so:
18
19 find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
20 cd ..
21 cat gentoo.igz.old gentoo.igz.new > gentoo.igz
22 cp gentoo.igz newcd/isolinux/
23 cd newcd
24 mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
25 -no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
26 cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
27
28 The thing is, the resultant CD will boot just fine. However, the file does
29 not show up in the /etc/init.d/ directory after the CD finishes booting. I'm
30 trying to do this without having to build an entirely new live cd using the
31 catalyst utilities. All I want to do is add a single file (maybe two) to the
32 /etc/init.d directory, and maybe modify one of the existing files.
33
34 Any help on this would be greatly appreciated.
35
36 -Eliot Gable

Replies

Subject Author
Re: [gentoo-catalyst] Initrd overlay for gentoo.igz Georg Lippold <georg.lippold@×××.de>