Oscar wrote:
> I've been able to customize the settings on the floppy version of tomsrbt, 
> but I'm wondering how to extract the contents of the ElTorito.288.bin image 
> to do the same.
> 


I have been working with this myself.  I am doing this on a linux system,
so I am not sure if it can be done under windows - perhaps with cygwin?

This is they way I have been doing it, if there is an easier way, feel
free to point it out.


The funny thing about it is that you do not need to edit ElTorito.288.bin
at all, just create one based on your customizations.

easiest way I have found is to copy the directory created when 
running unpack.s to /rb

in /rb create mkElTorito (source below)  This was taken from the mailing
list archives, but I cannot seem to find the exact message.  Perhaps Tom
can put this script in the add-ons?


Now, go though and make all of your customizations in the /rb directory,
when you are done, invoke ./mkElTorito  - this will handle the creation
of a new ElTorito.288.bin based on your customizations.

You can then use mkisofs and cdrecord to burn the cd

Cordially,

                                          George
____________________________________________________________________________
George Law - Software/Systems Engineer       Software Workshop Inc.
[EMAIL PROTECTED] 315.635.1968 (x213)             "software that fits!" (TM)
http://www.thebook.com



mkElTorito:

. 1/settings.s
echo $NM-$VE.$PL
export topdir=/rb
mkdir $topdir
umount /dev/ram0 /mnt /dev/ram1 /mnt2 /fl /mnt/* /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
mount /dev/ram1 /mnt2
cp -af /rb/1/* /mnt
cp -af /rb/2/dev /mnt
cp -af /rb/1/* /mnt2
cp -af /rb/2/* /mnt2
mv /mnt2/etc/rc.S /mnt2/etc/rc.S_
mv /mnt2/etc/rc.M /mnt2/etc/rc.M_
cat > /mnt2/etc/rc.S <<!
#!/bin/sh
PATH=/usr/bin:/bin
mount -o remount /
mount -a
init 5
!
cat > /mnt2/etc/rc.M <<!
#!/bin/sh
BT=1
PATH=/usr/bin:/bin
. /settings.s
update &
cp /rc.* /*.s /usr/doc
gzip -d /usr/doc/*.gz
. /usr/doc/rc.custom
mount /dev/fd0 /fl > /dev/null 2>&1
[ -f /fl/rc.tomsrtbt ] && . /fl/rc.tomsrtbt
umount /fl > /dev/null 2>&1
!
chmod ugo+x /mnt2/etc/rc.S /mnt2/etc/rc.M
umount /mnt2
dd if=/dev/ram1 bs=1k count=4096 | gzip -9 -n > /mnt/initrd.gz 2>/dev/null
ls -l /mnt
rm /mnt/map
lilo -r /mnt -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=/zImage
 root=/dev/ram0
 initrd=/initrd.gz
!
umount /mnt
dd if=/dev/ram0 bs=1k count=2880 | bzip2 -9 > $topdir/ElTorito.288.bin.bz2
dd if=/dev/ram0 bs=1k count=2880 > /rb/ElTorito.288.bin

Reply via email to