The problem with autorunning something from the root of the CD you
are booting is that it presumes we can find and mount the CD.  Note
that tomsrtbt would boot fine from a non-scsi non-ide CD, as long as
the BIOS works for it, but the tomsrtbt kernel would _not_ be able
to mount such a CD after boot- so we know for sure there are cases
where this isn't even possible.  To the degree it _is_ possible, we
would have to walk through all of the possible ide and scsi devices,
somehow guess which one was the boot cd, and guestimate everything
well enough to get it mounted.  If someone can write a decent CDROM
automount script in less than, um, 500 bytes, I'll put it in as an
option... -Tom

On Sat, 6 Mar 2004, Stephane Boireau wrote:

> Date: Sat, 6 Mar 2004 11:48:00 +0100
> From: Stephane Boireau <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [tomsrtbt] tomsrtbt-cd
>
> Hi,
>
> I'm trying again to modify tomsrtbt-cd.img;o).
>
> I succeed in getting french keyboard automatically:
>
> # mount -o loop toms2.img /mnt/disk/
> # cp /mnt/disk/rc.custom.gz ./
> # gzip -d rc.custom.gz
> # vi rc.custom
>
> I don't understand the way /mnt/disk/settings.s and /mnt/disk/rc.custom.gz
> are used.
> The modifications I did here didn't work.
>
> It works when I modify settings.s and rc.custom from initrd.bz2:
>
> # cp /mnt/disk/initrd.bz2 ./
> # bzip2 -d initrd.bz2
> # mount -o loop initrd /mnt/initrd
> # vi /mnt/initrd/settings.s
> # cp /mnt/initrd/rc.custom.gz ./
> # gzip -d rc.custom.gz
> # vi rc.custom
> # gzip rc.custom
> # cp rc.custom.gz /mnt/initrd/
> # umount /mnt/initrd
> # cat initrd | bzip2 -9 > initrd.bz2
> # cp -f initrd.bz2 /mnt/disk/
> # umount /mnt/disk/
>
> Here are modifications I did to rc.custom:
> ========================
> ...
> cat /lib/key.lst
> #read -p "
> #Select keyboard, ENTER for default (15 seconds): " J</dev/tty1>/dev/tty1
> #[ "$J" ]&&loadkmap</lib/key/$J.map
>
> loadkmap</lib/key/fr.map
>
> rm P
> X
> #(sleep 15;kill $!;rm P)2>$NU&
> (sleep 3;kill $!;rm P)2>$NU&
> ...
> ========================
>
>
>
> But I wanted to add two scripts.
> I tryed to put them in /mnt/initrd/tmp
> I suppose it is an error because in rc.custom there is:
> ========================
> mkfs.minix /dev/ram3
> mount /dev/ram3 /tmp
> ========================
>
> I tryed to put them in /mnt/initrd/bin too.
>
> It doesn't work.
>
> I get:
> =========================
> init started: Busybox v0.61.pre...
> Bummer, could not run '/etc/rc.S': Exec format ettor
> Bummer, could not run '/etc/rc.S': Exec format ettor
> _setutent: Can't open utmp file: No such file or directory
> _setutent: Can't open utmp file: No such file or directory
> _setutent: Can't open utmp file: No such file or directory
> =========================
>
> Where could I add my scripts?
> These are interactive scripts.
>
> If it isn't a good idea (maybe do I have too much to learn;o), could you add
> something to launch an autorun script at root of CD we boot from?
>
> Thank you for any suggestion.
>
> 'hope you'll understand/forgive the froggy way I write english.
> --
> Stephane Boireau
> Personne Ressource TICE du Coll�ge Le Hameau � Bernay (27)
>
>

Reply via email to