aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-11-06 23:33:20 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-11-06 23:33:20 +0000
commit44a88072bdca49fd0b9b9a6e7350a6a89399ff40 (patch)
tree386b28bd083e901966e98363315d8e2df773db1d
parent89c8eae117543bbfb0cec6ebbbd72dc2b51c7925 (diff)
downloadsrc-44a88072bdca49fd0b9b9a6e7350a6a89399ff40.tar.gz
src-44a88072bdca49fd0b9b9a6e7350a6a89399ff40.zip
Never have more than one active partition.
Notes
Notes: svn path=/head/; revision=4218
-rw-r--r--sbin/sysinstall/mbr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/sysinstall/mbr.c b/sbin/sysinstall/mbr.c
index dfd90d5e6b05..4649bd2a8478 100644
--- a/sbin/sysinstall/mbr.c
+++ b/sbin/sysinstall/mbr.c
@@ -420,6 +420,10 @@ Fdisk()
dp[l-1].dp_typ=l3;
i = AskEm(stdscr, "Bootflag (0x80 for YES)> ", buf, 5);
dp[l-1].dp_flag=strtol(buf, 0, 0);
+ if(dp[l-1].dp_flag)
+ for(i=0;i<NDOSPART;i++)
+ if(i != (l-1))
+ dp[i].dp_flag = 0;
break;
case 'd': case 'D':