diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-07-17 16:27:15 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-07-17 16:27:15 +0000 |
commit | 23620b2e70e9de0ce31c6f4f21926a044c5deabc (patch) | |
tree | 6e3c58273906bcf0437900972fce280d2ed082db /rc/bin/inst/bootplan9 | |
parent | c147614656b9c1b4338099a69c35e42c1f4313a5 (diff) |
inst: make bootsetup work for on pc architectures
Diffstat (limited to 'rc/bin/inst/bootplan9')
-rwxr-xr-x | rc/bin/inst/bootplan9 | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/rc/bin/inst/bootplan9 b/rc/bin/inst/bootplan9 index ae48bc524..86a758023 100755 --- a/rc/bin/inst/bootplan9 +++ b/rc/bin/inst/bootplan9 @@ -22,16 +22,18 @@ if(~ $#p9part 0){ exit '' } -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' yes no -switch($rd) { -case yes - disk/mbr -m /386/mbr /dev/$disk/data +if(test -f /386/mbr){ + 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' yes no + switch($rd) { + case yes + disk/mbr -m /386/mbr /dev/$disk/data + } } prompt 'Mark the Plan 9 partition active' yes no |