I am new to the whole "live cd" thing, so please bear with me here.
I am trying to add a file to the /etc/init.d/ directory that exists
*after* the entire Gentoo live cd boots up. I have figured out that the
/etc/init.d directory in the ISO image on the CD is a base environment
of some sorts, and that the gentoo.igz file in the isolinux directory
on the CD contains the real set of files that exist in the /etc/init.d
directory once the entire CD finishes booting. I have created a folder
to hold my overlay files. This folder looks like so:
find . -print
./etc
./etc/init.d
./etc/init.d/somescript
Now, I try to create an overlay like so:
find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
cd ..
cat gentoo.igz.old gentoo.igz.new > gentoo.igz
cp gentoo.igz newcd/isolinux/
cd newcd
mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
-no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
The thing is, the resultant CD will boot just fine. However, the file
does not show up in the /etc/init.d/ directory after the CD finishes
booting. I'm trying to do this without having to build an entirely new
live cd using the catalyst utilities. All I want to do is add a single
file (maybe two) to the /etc/init.d directory, and maybe modify one of
the existing files.
Any help on this would be greatly appreciated.
-Eliot Gable