From nobody Mon Aug 24 05:08:10 2026 X-Original-To: dev-commits-src-all@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 4hSzSw1S02z6qFn8 for ; Mon, 24 Aug 2026 05:08:16 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hSzSw0cFSz3bTr for ; Mon, 24 Aug 2026 05:08:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787548096; 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=8I1oDN4PjkPN8GgveybnPCATE3BFJc45dHCIiLNXAEU=; b=SpspvCTZ8CTHpRKjwBuKUouUstEbav/W4baFpRzVcuHlKrqU2a3FQJyMt13AZEMMRZQYlI 0HmhxKs72Z5+pFUQcQwuK9ptdcSbTPKs0+YFKgSiKrQ1OqZqFEJzukyQhwx2ci6XLwXUvo QInCkHuuweOBSE4mjOcOF6sQAV/rrqBT92DMNXtc7ixFtDKsu5yLby3G/F32mL8/shvSPX EJCCbN6mB5ynlHQLCbCXIKv45OyrMHuoS08lvpq64XQZ1d74NGncIPY95LySksDLVX6DxN OIx/7AGbs9RyhHAO2MlLzFlH/CTpibxMoA9libYuSEOK80F+/6UFiBZ5lswvcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787548096; a=rsa-sha256; cv=none; b=ln5yuOgw7sli0EdMTIFNhLWxhJy+SUiL9yDX996WeuEottedhzD5AZRNjO/+6iCLjizm8n JL5qIVuJ8Hux/qHxH0HL5NCoLKN1mA7Rf4ob99tr3n2DzmGMqloa6G6XTQEZT8MqNbHg+1 cEeBNn0WNoReLJv42pxmOyCBqdkQknXmW7nrkJJcPkC4FFOXF8yorMNolZadlTqsUSgpFk zS10/o2YcJQe6BjKDRYSmeYE2hQBgXwhbRawxl5Mep5KVYpq/PV1BHxxI7O9q+rFOSOVFE 2MmnfyhaGVrlNSLL/z5YdDIso9zQJfshskh7Fm3BNXO12sRWK/dmmy+X39qLjw== 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=1787548096; 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=8I1oDN4PjkPN8GgveybnPCATE3BFJc45dHCIiLNXAEU=; b=KSC1qTDF1qB6VJvWPouiIdQddZ06M3OMk4KpCt/rubTUoSif2EXo4+ae0Cuy3JRX7GN4hD GKoDmhGcBO/wVKf2rVjtblV3oePpwA4TyhPts38Eq20fqb7cfM3rieBdx0nBfaNpx+8r31 pHcWXiI7Dy8PWpqkcHdjn2n4/Hu6HalAbleqDfntOHKyR7c4zaKbjIpXgEeq7wq1w5L6n2 8g58MaeVIetnto+Orjq9rsffI1xgr1bf3Q7Kb5qI+ZGcbdrKTsr6wMrrRY0XJsmA59sifx /JlJVVj6bvMjmBqqtFvWN5uhfjVjvujHORB/HvLApDjmGIjey8lQq0RCCLNUsw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hSzSv69Tnzqkh for ; Mon, 24 Aug 2026 05:08:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 255c6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 24 Aug 2026 05:08:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: 22c4099b047f - main - EC2: Enable autogrowing filesystems post-boot List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 22c4099b047f33d23266c7fbf545c7ae85f183ba Auto-Submitted: auto-generated Date: Mon, 24 Aug 2026 05:08:10 +0000 Message-Id: <6a8bd1ba.255c6.274ec1dd@gitrepo.freebsd.org> The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=22c4099b047f33d23266c7fbf545c7ae85f183ba commit 22c4099b047f33d23266c7fbf545c7ae85f183ba Author: Colin Percival AuthorDate: 2026-08-24 05:06:06 +0000 Commit: Colin Percival CommitDate: 2026-08-24 05:06:06 +0000 EC2: Enable autogrowing filesystems post-boot Enable the new growfs_postboot mechanism. Note that this also implies disabling automatic allocation of swap space on the root disk, since we cannot grow the root filesystem if swap space is allocated after it. This will not be MFCed since it is a significant behavioural change. Sponsored by: Amazon Relnotes: yes --- release/tools/ec2-base.conf | 6 +++++- release/tools/ec2-small.conf | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/release/tools/ec2-base.conf b/release/tools/ec2-base.conf index 24b2feb5f0d7..bbee8a961cae 100644 --- a/release/tools/ec2-base.conf +++ b/release/tools/ec2-base.conf @@ -16,7 +16,7 @@ export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} amazon-ssm-agent ec2-scripts \ # Services to enable in rc.conf(5). export VM_RC_LIST="${VM_RC_LIST} ec2_configinit ec2_ephemeral_swap \ ec2_fetchkey ec2_loghostkey firstboot_pkg_upgrade firstboot_pkgs \ - growfs sshd" + growfs growfs_postboot sshd" vm_extra_pre_umount() { # The AWS CLI tools are generally useful, and small enough that they @@ -27,6 +27,10 @@ vm_extra_pre_umount() { # Limit firstboot_pkg_upgrade to the base system. echo 'firstboot_pkg_upgrade_repos="FreeBSD-base"' >> ${DESTDIR}/etc/rc.conf + # Don't allocate swap space when we first boot; that makes it + # impossible to grow the root filesystem later. + echo 'growfs_swap_size=0' >> ${DESTDIR}/etc/rc.conf + # Any EC2 ephemeral disks seen when the system first boots will # be "new" disks; there is no "previous boot" when they might have # been seen and used already. diff --git a/release/tools/ec2-small.conf b/release/tools/ec2-small.conf index 6da4444bc835..30992d70b24f 100644 --- a/release/tools/ec2-small.conf +++ b/release/tools/ec2-small.conf @@ -34,12 +34,16 @@ export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} ec2-scripts \ # Services to enable in rc.conf(5). export VM_RC_LIST="${VM_RC_LIST} ec2_configinit ec2_ephemeral_swap \ ec2_fetchkey ec2_loghostkey firstboot_pkg_upgrade \ - growfs sshd" + growfs growfs_postboot sshd" vm_extra_pre_umount() { # Limit firstboot_pkg_upgrade to the base system. echo 'firstboot_pkg_upgrade_repos="FreeBSD-base"' >> ${DESTDIR}/etc/rc.conf + # Don't allocate swap space when we first boot; that makes it + # impossible to grow the root filesystem later. + echo 'growfs_swap_size=0' >> ${DESTDIR}/etc/rc.conf + # Any EC2 ephemeral disks seen when the system first boots will # be "new" disks; there is no "previous boot" when they might have # been seen and used already.