Re: Elks Distribution

Riley Williams
2002-05-26T09:50:35Z

Hi Neil.

>>> I will, indeed, look very closely at your remarks as I move forward.
>>> I am particularly interested by the partition.c.

Note that it's called partype (for "partition type) and not partition.

>> If you're using ash as your install shell, you should be able to use
>> the following script...
>>
>> #!/bin/ash
>>
>> :
>>
>> fdisk /dev/bda
>> TGT=$(partype 80)
>>
>> ...and, from this point, you just use ${TGT} as the target
>> partition. I can't test this at the moment as I'm not near a
>> suitable system, so the above is pure theory at this point. However,
>> memory says that sash does not support the necessary facilities.
>>
>> Also note that if we move to /dev/hda instead of /dev/bda then only
>> the fdisk line needs changing, and the rest of the code will work as
>> is.

> Many Thanks. This is valuable information.

You'll also be pleased to hear that the code for partype.c was developed
using `gcc -Wall -pedantic` and, as a result, compiles and runs on Linux
as well as ELKS. It needs `bcc -ansi` to compile for ELKS, but we're
using that anyway, so it's not a problem.

I tested it on my Linux system by running `partype 83 ; echo $?` to
check it gave the right results, and it does.

Best wishes from Riley.