diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-12 16:32:51 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-12 16:32:51 +0000 |
commit | cef6cf06eb4051a81d3c91c42259d26183b67514 (patch) | |
tree | 60d25381cc2ae9e6ea4871e1502f954705fa2860 /rc/bin/inst/bootsetup | |
parent | 67e93d6a0a4f15192638e131413b9d64c4269c76 (diff) | |
download | plan9front-cef6cf06eb4051a81d3c91c42259d26183b67514.tar.xz |
update installer for 9bootfat
Diffstat (limited to 'rc/bin/inst/bootsetup')
-rwxr-xr-x | rc/bin/inst/bootsetup | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/rc/bin/inst/bootsetup b/rc/bin/inst/bootsetup index cc22fe6ee..1d19bd62c 100755 --- a/rc/bin/inst/bootsetup +++ b/rc/bin/inst/bootsetup @@ -55,34 +55,15 @@ case go if not if(! test -f /n/9fat/plan9.ini) need9fatformat=yes - if (test -e /n/newfs/386/9loadnousb) - bind /n/newfs/386/9loadnousb /n/newfs/386/9load # cater to old bioses if(~ $need9fatformat yes){ log Initializing Plan 9 FAT partition. disk/format -r 2 -d -b /386/pbs \ - /dev/$disk/9fat /n/newfs/386/9load - # silently install pbslba if the partition is way into the disk. - # it''s our only hope. only need this for >8.5GB into the disk. - # but... - # there are so few non-LBA bioses out - # there anymore that we'll do this even if we're only 2GB into - # the disk. it's just not worth the headaches of dealing with - # crappy bioses that don't address the whole 8.5GB properly - - 9fatoffset=`{grep '^part 9fat ' /dev/$disk/ctl | awk '{print $4}'} - if(! ~ $#9fatoffset 1) { - echo 'could not find plan 9 partition.' - echo 'cannot happen' - exit bad - } - if(test $9fatoffset -gt 2097152) # 2GB - disk/format -b /386/pbslba /dev/$disk/9fat - + /dev/$disk/9fat /n/newfs/386/9bootfat mount -c /srv/dos /n/9fat /dev/$disk/9fat } if(! test -f /n/9fat/4e){ - logprog cp /n/newfs/386/9load /n/9fat/9load + logprog cp /n/newfs/386/9bootfat /n/9fat/9bootfat logprog cp /n/newfs/386/9pcf /n/9fat/9pcf if(test -f /n/9fat/plan9.ini && ! test -f /n/9fat/plan9-3e.ini) logprog mv /n/9fat/plan9.ini /n/9fat/plan9-3e.ini @@ -97,9 +78,7 @@ case go echo 'There are myriad ways to boot a Plan 9 system.' echo 'You can use any of the following.' echo - echo ' floppy - create a boot floppy' echo ' plan9 - make the plan 9 disk partition the default for booting' - echo ' win9x - add a plan 9 option to windows 9x boot menu' echo ' winnt - add a plan 9 option to windows nt/2000/xp boot manager' echo echo 'If you are upgrading an extant third edition installation and booting' @@ -109,7 +88,7 @@ case go oldbootsetup=$didbootsetup didbootsetup=1 export didbootsetup - prompt 'Enable boot method' floppy plan9 win9x winnt + prompt 'Enable boot method' plan9 winnt if(! boot$rd){ didbootsetup=$oldbootsetup |