Clocker said:
Thank IFMU, he PMed me at OC.com and let me know there was an Overfoldix discussion going on here
I'd like to see the ID and Team number be configurable from the very beginning by default.
Without editing the iso, then you need to use cfgfolding. The reason for this is that folding is started as a process for runlevel 5 (default). This basically means it is started at system startup, before interactive input is allowed.
Also, I'll like to modify my installation so that the ISO CDR I'm using has my ID and team number in there by default. I have loaded Mandrake on one of my machines so I can modify the files. But, I'm not sure HOW to do what needs to be done.
I need to modify the ISO image of the CD so that it has my ID/Team as the default. The goal is....I can leave the CD in the CD drive so that if I have a power interruption and the system restarts, the system will boot off the CD and start folding under my name and ID w/o my intervention....
Any help would be appreciated.
Thanks,
Clock
Now that can be done. Here's how:
In Mandrake, place the iso in an empty directory somewhere. Make a directory in this empty directory (lets say /tmp/ofdx/ for example) called iso_contents:
md iso_contents
Then we need to mount the iso, lets use the /cdrom directory
mount -o loop ofdx-0.3a.iso /cdrom/
Then copy the iso's contents to the iso_contents directory we made:
cp -r /cdrom/ /tmp/ofdx/iso_contents/
Then unmount the iso:
umount /cdrom/
Next: edit the initrd.gz (the initial ramdisk filesystem). Gunzip it
cd iso_contents/isolinux
gunzip initrd.gz
There will then be a file called initrd. We mount this, lets use /cdrom/ again.
mount -o loop initrd /cdrom/
Then navigate to the mounted initrd
cd /cdrom/
and then go into the bit of etc that deals with runlevels:
cd etc/init.d
Then edit the file called 'folding'. I will give instructions for vi, as although I prefer mcedit, vi is more common.
Open the folding script:
vi folding
Move the cursor down to the area that has each line of the config file in "s. eg, like "Username=blah".
Press I (shift-i, a capital I is needed). Then delete the current username and team (Gator and 32 by default) and replace them with your username and team. Then type ZZ (hold shift and press z twice) and thats the file edited. Back to the temporary directory:
cd /tmp/ofdx/iso_contents/isolinux
Unmount the initrd.Note the command is 'umount' and not 'unmount'.
umount /cdrom/
Then zip up the initrd:
gzip -v9 initrd
Then delete the boot.cat file:
rm boot.cat
Then come up one directory:
cd ..
And make a new ISO as follows:
su -c "mkisofs -rJ -o ofdx-0.3a.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ./"
That will make your new CD image
David