From ca5f33b3f61f30fed252c4c0e410117964de79d3 Mon Sep 17 00:00:00 2001 From: cperciva Date: Fri, 24 Mar 2006 22:45:24 +0000 Subject: Only set the size of /usr to whatever-is-left is whatever-is-left is greater than the size we autosized. Without this fix, systems with drives under 10GB can end up with very small /usr partitions... Broken since: January 2002 Tripped over by: simon --- usr.sbin/sysinstall/label.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin/sysinstall/label.c') diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 2a432da..21a9744 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -1522,6 +1522,7 @@ try_auto_label(Device **devs, Device *dev, int perc, int *req) if (UsrChunk == NULL && !variable_get(VAR_NO_USR)) { sz = requested_part_size(VAR_USR_SIZE, USR_NOMINAL_SIZE, USR_DEFAULT_SIZE, perc); #if AUTO_HOME == 0 + if (sz < space_free(label_chunk_info[here].c)) sz = space_free(label_chunk_info[here].c); #endif if (sz) { -- cgit v1.1