Heavily customized Live-CD
Le lun 05 mar 2007 23:03:49 CET, Andrei Popescu
<email@example.com> a ?crit :
> I did look at the LIVE_HOOK variable. When exactly is it being run?
> AFAIU the xorg.conf is generated when booting the live cd.
I've made some trials for a similar purpose (removing auto-login in
gdm), this kind of tasks is made when booting your live-media, by the
casper's "bottom" scripts.
I've made a small script which remove unwanted casper script in the
initrd (where they are) :
$ cat mod-initrd
if [ -n "$1" ]; then
if [ -e tmp ]; then rmdir tmp; fi
if [ ! -e $initrd.orig ]; then
cp $initrd $initrd.orig
gunzip -cd $initrd | cpio -id
find . | cpio -H newc -o | gzip -9 > $initrd
cd .. ; rm -rf tmp
ls -l $initrd*
But it would be nice to have a cleaner solution :?we should obviously
remove/modify the Casper's scripts inside the binary image, before
generating initrd, but I?didn't have time to look at this...
Hope it helps,