From nobody Fri Apr 18 13:09:22 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZfFTb07Xbz5smNp; Fri, 18 Apr 2025 13:09:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZfFTZ3CBgz3fYd; Fri, 18 Apr 2025 13:09:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744981762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ez3RMVA+3YHtHBe+1JJJWpjcVweHDUYDl0tliRdHv7M=; b=uz8ZGDcE1Q5BwX34oaJ9MFuZ8ZYMAChQrFAsH6fH6iNh9jMwDgNYHocICNMTPoLkK38lcE l03Sc2dJgM86zWaZtzdUSmABO4TqXBwRy2wA63wJ5Abzs3vtkfigwybkPZ442y0ec+B/kU qbh3kcz0Nrf2GTr4Xnp1rm7PE0xenI1Ol7RtiDBinyOsuxAnNOJY4WvZw1lDbfCv0+KNEs sVJAhATv8onxoM6n7U6VUZNL7KapBMuoIAHUk1hFY76irqyF2K/z04j7dAHvsJbMyU6/VP +1yXXp6TvKIlEf8VR2kZhNwLcRRFy3WOhjoJLCMg7zmGPLkZSvvLBQLqiLphMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744981762; a=rsa-sha256; cv=none; b=n6pwn6ge/wFoxahJU/v+73Cudev/EX48Jw8jT007uFqCAEPkxmvkzrY7UriXm+zZDWwkyo AGXEpQdCkhEfylnGH1AcNPii07FRHdRRe6zFvgiW2mMzBuX3gCofyZWoieky/YwXUE9mat vDWSG6MzPtVmfm4XM0lWFPVuWsw3sQFMvLYBHWOf7fn+8xq+GJDfCa0XJPgoT6Mt+Pyn0w a+1mNBAY9OjBlFHyr9ZRbJNyuzxe2N1k6x0P5K+nwjdI/aCsyToWoILHfjOyOAXK1JMfWX QOWa/3bjj7UYgn88j5MJBz5buSkgw6v5r6GyyYWegdUZZQtPRXp8xrnbxGhCMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744981762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ez3RMVA+3YHtHBe+1JJJWpjcVweHDUYDl0tliRdHv7M=; b=QLd76DBYCep85KWXrvK4n36s1drormC1Vsk3cK9njLPO+H9lQyvFtJm5iCEYia6c5X3S4g tcP0z+0X9mO+Wq5cQ1IynPcVbv39MQrHLy9FWS7bQvsXG9Gp1Mkh0Sg/yClg9+6KS99UME 8+lFHTHGykmKL3LGrvfZ20VuaDDb03h+0UZlmEcut9nsuhttZnvUqZ0tqzcNTmRQzaAUj9 cd1Ef3yUKYRPPHdm/JRuiSUAOAwS0diUGIKGBPk9WvW9Z/n4vHhKdNbwQbxPzPwXVcVDTN xhMiO55hhgj2RYKIh4J9OHNwNazr4Pt2r1uF8G83WEILuXO1KE2xUn121DD57g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZfFTZ2pgyzbyW; Fri, 18 Apr 2025 13:09:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53ID9MOx022699; Fri, 18 Apr 2025 13:09:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53ID9Mn5022696; Fri, 18 Apr 2025 13:09:22 GMT (envelope-from git) Date: Fri, 18 Apr 2025 13:09:22 GMT Message-Id: <202504181309.53ID9Mn5022696@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 57e12d397387 - main - partedit: make minimum FreeBSD install size just under 1 GiB List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 57e12d397387542b13f175d4c0b8b5adca198690 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=57e12d397387542b13f175d4c0b8b5adca198690 commit 57e12d397387542b13f175d4c0b8b5adca198690 Author: Ed Maste AuthorDate: 2023-03-02 23:35:33 +0000 Commit: Ed Maste 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 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);