From b929f24b929f1c2452d12d9a6987d5485c4a4ed0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 6 Dec 2012 06:35:36 +0100 Subject: inst: remove broken winnt boot setup --- rc/bin/inst/bootplan9 | 45 ++++++++++++++++++++------------------------- 1 file changed, 20 insertions(+), 25 deletions(-) (limited to 'rc/bin/inst/bootplan9') diff --git a/rc/bin/inst/bootplan9 b/rc/bin/inst/bootplan9 index 8e4ca0bc8..3f4820f6b 100755 --- a/rc/bin/inst/bootplan9 +++ b/rc/bin/inst/bootplan9 @@ -7,17 +7,6 @@ if(! ~ $#p9offset 1) { exit bad } -if(test $p9offset -gt 4128695) { # 65536 * 63 - 10 - echo - echo 'Your Plan 9 partition is more than 2GB into your disk,' - echo 'and the master boot records used by Windows 9x/ME' - echo 'cannot access it (and thus cannot boot it).' - echo - echo 'You can install the Plan 9 master boot record, which can load' - echo 'partitions far into the disk.' - echo -} - echo 'If you use the Windows NT/2000/XP master boot record' echo 'or a master boot record from a Unix clone (e.g., LILO or' echo 'FreeBSD bootmgr), it is probably safe to continue using' @@ -31,19 +20,25 @@ case y disk/mbr -m /386/mbr /dev/$disk/data } -log Setting Plan 9 partition active. -p9part=`{disk/fdisk /dev/$disk/data >[2]/dev/null [2]/dev/null [1=2] - exit 'no plan 9 partition found' -} -p9part=$p9part(1) -{ echo 'A '^$p9part; echo w } | disk/fdisk /dev/$disk/data >[2]/dev/null >/dev/null -x=$status -if(~ $x '' '|'){ - echo - echo 'The Plan 9 partition is now marked as active.' - exit '' + if(~ $#p9part 0){ + echo 'You have no Plan 9 partitions (How could this happen?)' >[1=2] + exit 'no plan 9 partition found' + } + p9part=$p9part(1) + { echo 'A '^$p9part; echo w } | disk/fdisk /dev/$disk/data >[2]/dev/null >/dev/null + x=$status + if(~ $x '' '|'){ + echo + echo 'The Plan 9 partition is now marked as active.' + exit '' + } + exit $x } -exit $x +exit '' -- cgit v1.2.3