summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-06-12 08:46:51 +0000
committerjkh <jkh@FreeBSD.org>1997-06-12 08:46:51 +0000
commitf0f2f5b31c0820430df16d9fad0f02e3490c1981 (patch)
tree0d6df38141c024bc37ed000f75f0955d6d0f5f0b /release
parentf6bcf2cd2305de2b89f217f381b4a04bf8a849a1 (diff)
downloadFreeBSD-src-f0f2f5b31c0820430df16d9fad0f02e3490c1981.zip
FreeBSD-src-f0f2f5b31c0820430df16d9fad0f02e3490c1981.tar.gz
YAMF22
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/disks.c11
-rw-r--r--release/sysinstall/install.cfg13
2 files changed, 16 insertions, 8 deletions
diff --git a/release/sysinstall/disks.c b/release/sysinstall/disks.c
index 036268d..115e578 100644
--- a/release/sysinstall/disks.c
+++ b/release/sysinstall/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.85 1997/05/10 17:11:24 pst Exp $
+ * $Id: disks.c,v 1.86 1997/06/05 09:47:55 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -598,7 +598,8 @@ static void
diskPartitionNonInteractive(Device *dev, Disk *d)
{
char *cp;
- int i, sz;
+ int i, sz, all_disk = 0;
+ u_char *mbrContents;
record_chunks(d);
cp = variable_get(VAR_GEOMETRY);
@@ -638,7 +639,7 @@ diskPartitionNonInteractive(Device *dev, Disk *d)
/* Do really-all-the-disk-space case */
msgDebug("Warning: Devoting all of disk %s to FreeBSD.\n", d->name);
- All_FreeBSD(d, TRUE);
+ All_FreeBSD(d, all_disk = TRUE);
}
else if ((sz = strtol(cp, &cp, 0))) {
/* Look for sz bytes free */
@@ -675,6 +676,10 @@ diskPartitionNonInteractive(Device *dev, Disk *d)
msgConfirm("`%s' is an invalid value for %s - is config file valid?", cp, VAR_PARTITION);
return;
}
+ if (!all_disk) {
+ mbrContents = getBootMgr(d->name);
+ Set_Boot_Mgr(d, mbrContents);
+ }
variable_set2(DISK_PARTITIONED, "yes");
}
}
diff --git a/release/sysinstall/install.cfg b/release/sysinstall/install.cfg
index 832d403..c5ed7e5 100644
--- a/release/sysinstall/install.cfg
+++ b/release/sysinstall/install.cfg
@@ -26,8 +26,11 @@ distSetUser
# remaining free space (could also be "all" or "existing" to use all the
# disk or an existing FreeBSD slice).
disk=wd0
-diskSpace=free
-bootManager=booteasy
+# Use the whole disk.
+partition=exclusive
+# Use only the free space.
+#partition=free
+#bootManager=booteasy
diskPartitionEditor
# It's bogus that we have to re-enter the label editor for each partition
@@ -36,15 +39,15 @@ diskPartitionEditor
# partition and mounts it as /dos, which is the case on my laptop.
# We can also create a root partition of 20MB in size on the same pass since
# it's in a different slice (s2). All sizes are expressed in 512 byte blocks!
-wd0s2=partition 40960 /
+wd0s1=partition 40960 /
diskLabelEditor
# Now make a 20MB swap partition in the second slice.
-wd0s2=swap 40960 none
+wd0s1=swap 40960 none
diskLabelEditor
# Size of 0 means allocate the rest of the space to /usr
-wd0s2=partition 0 /usr
+wd0s1=partition 0 /usr
diskLabelEditor
# OK, everything is set. Do it!
OpenPOWER on IntegriCloud