aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/disks.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-09-02 00:51:16 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-09-02 00:51:16 +0000
commit3910e95363804f8a406c9dab85d29e6e9c7b3645 (patch)
treec2389a870ee9129f025e920d518eed317da234b2 /usr.sbin/sysinstall/disks.c
parentbca1bc6498161d90d4d33eb8f9ad8d89a1158be2 (diff)
downloadsrc-3910e95363804f8a406c9dab85d29e6e9c7b3645.tar.gz
src-3910e95363804f8a406c9dab85d29e6e9c7b3645.zip
Oh crud, did I ever screw the pooch! Rather than sync this with -stable,
I backed-out the changes in -current and didn't touch stable at all (I thought I had my patch order reversed, not what actually happened). AIEEE! I can't even blame the crack for this one since I broke my crack pipe a few weeks ago. I think sleep deprivation gets the blame for this one. Medal for noticing this one goes to: Jim Bloom <bloom@acm.org>
Notes
Notes: svn path=/head/; revision=50780
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r--usr.sbin/sysinstall/disks.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index f820976a2dcb..fe4ee828b4a5 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -455,20 +455,16 @@ diskPartition(Device *dev)
* disk (i.e., the disklabel starts at sector 0), even in cases where the user has requested
* booteasy or a "standard" MBR -- both would be fatal in this case.
*/
-#if 0
- if ((d->chunks->part->flags & CHUNK_FORCE_ALL) != CHUNK_FORCE_ALL
- && (mbrContents = getBootMgr(d->name)) != NULL)
- Set_Boot_Mgr(d, mbrContents);
-#else
/*
* Don't offer to update the MBR on this disk if the first "real" chunk looks like
* a FreeBSD "all disk" partition, or the disk is entirely FreeBSD.
*/
- if (((d->chunks->part->type != freebsd) || (d->chunks->part->offset > 1)) &&
- (mbrContents = getBootMgr(d->name)) != NULL)
- Set_Boot_Mgr(d, mbrContents);
-#endif
-
+ if (((d->chunks->part->type != freebsd) || (d->chunks->part->offset > 1)))
+ mbrContents = getBootMgr(d->name);
+ else
+ mbrContents = NULL;
+ Set_Boot_Mgr(d, mbrContents);
+
if (DITEM_STATUS(diskPartitionWrite(NULL)) != DITEM_SUCCESS)
msgConfirm("Disk partition write returned an error status!");
else