Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2025 13:35:21 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e69669bcd7de - stable/14 - partedit: make minimum FreeBSD install size just under 1 GiB
Message-ID:  <202511121335.5ACDZL1q011550@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511121335.5ACDZL1q011550>