summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/sade/label.c1
-rw-r--r--usr.sbin/sysinstall/label.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index 2a432da..21a9744 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/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) {
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) {
OpenPOWER on IntegriCloud