Added a kernel to the disk/format line of the floppy and replaces "386" with "$cputype". Notes: Sat Jan 7 11:38:18 EST 2006 rsc All of these changes are wrong -- the files named only exist in /386/, so saying /$cputype/ is misleading. Reference: /n/sources/patch/sorry/prep-8-fix Date: Sat Jan 7 13:15:27 CET 2006 Reviewed-by: rsc --- /sys/man/8/prep Sat Jan 7 13:15:13 2006 +++ /sys/man/8/prep Sat Jan 7 13:15:08 2006 @@ -595,7 +595,7 @@ option prints debugging information. .PP The file -.B /386/pbs +.B /$cputype/pbs is an example of a suitable .I bfile to make the disk a boot disk. @@ -608,7 +608,7 @@ single sector reads to load the file into address 0x10000 and then jumps to the loaded file image. The file -.B /386/pbslba +.B /$cputype/pbslba is similar, but because it uses LBA addressing (not supported by all BIOSes), it can access more than the first 8.5GB of the disk. .PP @@ -632,7 +632,7 @@ on your hard disk, the master boot record already has a suitable boot block. Otherwise, -.B /386/mbr +.B /$cputype/mbr is an appropriate .IR mbrfile . It detects and uses LBA addressing when available @@ -668,17 +668,19 @@ Create a Plan 9 boot floppy on a previously formatted diskette: .IP .EX -disk/format -b /386/pbs -df /dev/fd0disk /386/9load /tmp/plan9.ini +disk/format -b /$cputype/pbs -df /dev/fd0disk \\ + /$cputype/9load /tmp/plan9.ini /$cputype/9pcdisk.gz .EE .PP Initialize the blank hard disk .BR /dev/sdC0/data . .IP .EX -disk/mbr -m /386/mbr /dev/sdC0/data +disk/mbr -m /$cputype/mbr /dev/sdC0/data disk/fdisk -baw /dev/sdC0/data disk/prep -bw -a^(9fat fs cache swap) /dev/sdC0/plan9 -disk/format -b /386/pbslba -d -r 2 /dev/sdC0/9fat 9load 9pcdisk plan9.ini +disk/format -b /$cputype/pbslba -d -r 2 /dev/sdC0/9fat \\ + /$cputype/9load /$cputype/9pcdisk /tmp/plan9.ini .EE .PP .SH SOURCE