git: e69669bcd7de - stable/14 - partedit: make minimum FreeBSD install size just under 1 GiB

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Wed, 12 Nov 2025 13:35:21 UTC
The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=e69669bcd7decb1866484c454c45fd9d7fc4167d

commit e69669bcd7decb1866484c454c45fd9d7fc4167d
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-03-02 23:35:33 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-11-12 13:35:04 +0000

    partedit: make minimum FreeBSD install size just under 1 GiB
    
    1 GiB is a convenient disk image size for testing.  It is also the
    installer's minimum size, but the minimum applies to the partition
    rather than the whole disk.  Testing with a 1 GiB image resulted in the
    counterintuitive error "There is not enough free space on <disk> to
    install FreeBSD (1.0 GB free, 1.0 GB required)."
    
    Reduce the installer's minimum size slightly to support this case.
    
    Reviewed by:    brd
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D38881
    
    (cherry picked from commit 57e12d397387542b13f175d4c0b8b5adca198690)
---
 usr.sbin/bsdinstall/partedit/part_wizard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/bsdinstall/partedit/part_wizard.c b/usr.sbin/bsdinstall/partedit/part_wizard.c
index ba01e115bcf4..e0711efd47d5 100644
--- a/usr.sbin/bsdinstall/partedit/part_wizard.c
+++ b/usr.sbin/bsdinstall/partedit/part_wizard.c
@@ -40,7 +40,7 @@
 
 #include "partedit.h"
 
-#define MIN_FREE_SPACE		(1024*1024*1024) /* 1 GB */
+#define MIN_FREE_SPACE		(1023*1024*1024) /* Just under 1 GB */
 #define SWAP_SIZE(available)	MIN(available/20, 4*1024*1024*1024LL)
 
 static char *wizard_partition(struct gmesh *mesh, const char *disk);