I have been playing around with an add on floppy for tomsrtbt disk with the aim of creating a minimal "distribution" with an interactive python interpreter. It seems to work but I am having trouble with a setup script. The python binary together with some other libraries and modules is contained in a file python.tgz stored in a minix formatted floppy together with the script setup (see attachment). After booting up using tomsrtbt I put the python floppy in the drive and do mount -t minix /dev/fd0u1722 /fl /fl/setup The script then seems to work except that the umount fails with a "busy". Can anyone suggest a way around this? After manually doing umount /fl I tried echo $PATH and discovered that /usr/local/bin had not been appended to the path. Why is it so? If I do PATH=$PATH:/usr/local/bin manually it works OK. After this I can type python and get a python prompt or if I do python somefile.py the somefile.py script runs OK. suggestions anyone? TIA Ken
#!/bin/ash rm /usr/local mkdir /usr/local mkfs.minix /dev/ram2 mount -t minix /dev/ram2 /usr/local cd /usr/local gzip -d < /fl/python.tgz | tar -xvf - cd / ln -s /usr/local/lib/libdl.so.1.8.10 /lib/libdl.so.1 ln -s /usr/local/lib/libm.so.5.0.9 /lib/libm.so.5 PATH=$PATH:/usr/local/bin export PATH umount /fl echo "You may remove the floppy."
