git: 57e12d397387 - main - partedit: make minimum FreeBSD install size just under 1 GiB
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Apr 2025 13:09:22 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=57e12d397387542b13f175d4c0b8b5adca198690 commit 57e12d397387542b13f175d4c0b8b5adca198690 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2023-03-02 23:35:33 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2025-04-18 13:09:05 +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 --- 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 44d9a08b0c78..90a8da1c3c9b 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);