This is a patch for adding a question to the user in bootplan9, whether he wants to install the Plan9 MBR or not. The existing mechanism only asked when the Plan 9 partition was 2Gb into the disk. Now, when this happens, some hints about it are printed additionally to the main question. Notes: Mon Apr 11 16:44:39 EDT 2005 rsc There was an unmatched quote in one of the new sections. Please check that I got it right. I removed the sectio with the bad quote -- it wasn't adding anything anyway. Russ Reference: /n/sources/patch/applied/install-mbr-question Date: Sat Apr 9 14:26:28 CES 2005 Reviewed-by: rsc --- /sys/lib/dist/pc/inst/bootplan9 Sat Apr 9 14:25:27 2005 +++ /sys/lib/dist/pc/inst/bootplan9 Sat Apr 9 14:25:10 2005 @@ -13,6 +13,11 @@ exit bad } +echo +echo 'You have now the choice whether you want to install the' +echo 'master boot record of Plan9 or not.' +echo ' + if(test $p9offset -gt 4128695) { # 65536 * 63 - 10 echo echo 'Your Plan 9 partition is more than 2GB into your disk,' @@ -22,18 +27,19 @@ 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' - echo 'that boot record rather than install the Plan 9 boot record.' - echo - prompt 'Install the Plan 9 master boot record' y n - switch($rd) { - case n - ; - case y - disk/mbr -m /386/mbr /dev/$disk/data - } +} + +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' +echo 'that boot record rather than install the Plan 9 boot record.' +echo +prompt 'Install the Plan 9 master boot record' y n +switch($rd) { +case n + ; +case y + disk/mbr -m /386/mbr /dev/$disk/data } log Setting Plan 9 partition active.