I have never productionized the script that makes the CD, I think
some others have worked on that and maybe what they did can be
found in the wikiwiki or the mailing list archive, the canonical
script (that is, what I use) will need to be customized, but, for
the record, here it is:


. 1/settings.s
echo $NM-$VE.$PL
export topdir=/rb/$NM-$VE.$PL.ElTorito
mkdir $topdir
umount /dev/ram0 2>/dev/null
umount /mnt/ram0 2>/dev/null
umount /dev/ram1 2>/dev/null
umount /mnt/ram1 2>/dev/null
umount /fl 2>/dev/null
umount /dev/ram2 2>/dev/null
dd if=/dev/zero of=/dev/ram0 bs=1k count=2880 2>/dev/null
dd if=/dev/zero of=/dev/ram1 bs=1k count=4096 2>/dev/null
mkfs.minix /dev/ram0 2880 > /dev/null
mkfs.minix /dev/ram1 4096 > /dev/null
mount /dev/ram0 /mnt/ram0
mount /dev/ram1 /mnt/ram1
cp -af /rb/1/* /mnt/ram0
cp -af /rb/1/settings.s /mnt/ram1
cp -af /rb/1/rc.custom.gz /mnt/ram1
mkdir /mnt/ram0/dev
cp -af /rb/2/dev/ram* /mnt/ram0/dev
cp -af /rb/2/* /mnt/ram1
cp -af /rb/license.html /mnt/ram1
mv /mnt/ram1/etc/rc.S /mnt/ram1/etc/rc.S_
cat > /mnt/ram1/etc/rc.S <<!
#!/bin/sh
PATH=/bin
BT=1
mount -o remount /
mount -a
. /settings.s
update &
cp /rc.* /*.s /bin
gzip -d /bin/*.gz
. /bin/rc.custom
!
chmod ugo+rx /mnt/ram1/etc/rc.S
umount /mnt/ram1
dd if=/dev/ram1 bs=1k count=4096 | bzip2 -9 > /mnt/ram0/initrd.bz2 2>/dev/null
rm /mnt/ram0/map
lilo -r /mnt/ram0 -C - <<!
 boot=/dev/ram0
 disk=/dev/ram0
 bios=0x00
 sectors=36
 heads=2
 cylinders=80
 install=/boot.b
 message=/settings.s
 backup=/dev/null
 map=/map
 timeout=150
 read-write
 vga=ask
 prompt
 image=/bz2bzImage
 root=/dev/ram0
 initrd=/initrd.bz2
 append="parport=0x378,7"
!
#mkdir /mnt/ram0/add-ons
#cp -af /rb/add-ons/part1/* /mnt/ram0/add-ons
umount /mnt/ram0
dd if=/dev/ram0 bs=1k count=2880 | bzip2 -9 > /var/httpd/htdocs/pair$topdir.288.img.bz2
cd /M5/rb
dd if=/dev/ram0 bs=1k count=2880 of=/M5/rb/tomsrtbt.288.img
mkisofs -b tomsrtbt.288.img -c boot.catalog -o tomsrtbt.iso 1 2 add* tomsrtbt.288.img
cp /M5/rb/tomsrtbt.iso /var/httpd/htdocs/pair/rb
cd /var/httpd/htdocs/pair/rb
chmod ugo+rx *

On Thu, 25 Sep 2003, Stephane Boireau wrote:

> Date: Thu, 25 Sep 2003 16:00:52 +0200
> From: Stephane Boireau <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [tomsrtbt] Modify tomsrtbt-bootcd?
>
> Hi,
>
> If I want to change some things in tomsrtbt-bootcd, how can I proceed?
>
> - mount with -o loop option
> - copy to a directory
> - make changes
> - and then, what do I have to do to rebuid the image?
>
> Thank you very much.
> --
> Stephane Boireau
> Personne ressource TICE du coll�ge Le Hameau � Bernay (27)
>

Reply via email to