diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2006-03-24 22:45:24 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2006-03-24 22:45:24 +0000 |
commit | 256c62e23f90be0e25cebca16940983a868760dc (patch) | |
tree | 93134063a8869292cd7e109e58d9001abc180070 /usr.sbin/sysinstall/label.c | |
parent | 0c21f9eda78179e27704f3eee59c815f852727f1 (diff) | |
download | src-256c62e23f90be0e25cebca16940983a868760dc.tar.gz src-256c62e23f90be0e25cebca16940983a868760dc.zip |
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
Notes
Notes:
svn path=/head/; revision=157107
Diffstat (limited to 'usr.sbin/sysinstall/label.c')
-rw-r--r-- | usr.sbin/sysinstall/label.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 2a432da76756..21a9744b08c5 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) { |