I've written two new boot utilities:
'mbr' is a single-sector partition manager, which allows you to name each
partition, provides a boot prompt similar to LILO's, allows you to set a
timeout value for the prompt (to boot the default partition) and which can
optionally set the active flag of the parition being booted in the partition
table (this is useful for booting SCO-Xenix or having two primary DOS
paritions). 'mbr' includes an install utility for DOS and Linux. 'mbr'
fits entirely within the first sector- no secondary files are loaded during
it's operation.
'bootfat' is a single sector bootloader which understand DOS FAT
filesystems. No 'sys'-like utility is needed when you change the operating
system- all you have to do is copy vmlinuz to the root directory. 'bootfat'
does not include an install utility, but does include an assembled version
set up for booting 1.44M floppies. It needs an install utility for hard
drives.
I'm working the equivalent of 'bootfat' for ext2. It will be done shortly.
Find on: ftp.worcester.com, files: pub/joe/mbr.tar.Z and
pub/joe/bootfat.tar.Z.
--
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
+r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}