From nobody Fri Jan 6 00:44:24 2023 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 4Np4NT1zmtz2qxwX; Fri, 6 Jan 2023 00:44:25 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Np4NT1Xt0z42dl; Fri, 6 Jan 2023 00:44:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672965865; 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=LN4bwC2Mqsj0ZrnYTVGGL0glyz7WbNvGHwVAknzFtgY=; b=qWHYg2V1n/lq8mjDVaRcLrEB2BNTsPo2xRJB3eQ52rVYxikaYjRPhu0jBvGAo4b/n4TMbZ YKiduSK+/S51wXxKr/oQy4cTOO9CpAgmOVxPLmxbcJCWkuPpH10l7ik3+LVB5gx/CK464W /XVfoXhdY9c61jD/vvzXZbptjNlUU4EWTaig/G6HJgowEvbQohi2ieyRgO32O1AwG2Mase 3Lw/vB5NAYqsbDqn4NBhj1i24DmDEL/TLQYBaPakgrCzNhB0A9ObWGOqXAVZhp7NyKQEBg ppdafTkpkzHdSS1zTEoPvFnlq/+jAGuRgzAFkkLTa1W32MsNUBixijKnFGqiDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672965865; 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=LN4bwC2Mqsj0ZrnYTVGGL0glyz7WbNvGHwVAknzFtgY=; b=QO38JWrASk2bBYN+7nakv2H6MuMWzAjk3cAIMTn3XNjMpq8u3zwYVegZ02IBiLM/j+9fn3 gmg6QKQYLaisg6C6gjdVLJ/F0LWEhRhpF/36+PdoY20G4ztQfXWEJjJoarnbPrYbkNWAq4 xvQ3h7HzXkf1yrdZF4ElU7H92xdu3AIPn2idcq/mf3/eC7RjLZUOOwMKzPHeCL3pGQmBHx Zp3RbEU0U7C6+KaQQLqaXNgAlvYBE0EgG4AV4fTeG6fiQrt5Al8agsHQSdu3N6a+Jv9V08 8IfZ3ZoWtWAruRtq6ikNa/lrvbMgLzFqThyMgCVlDsX1e2qdmptfFH5tq9vEkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672965865; a=rsa-sha256; cv=none; b=bCCJCp/rxt7/ZKtzVSrx15bB67JN2epvrNs9mo8Pa3/wyto6jCdqKlP+ofEEv/oKpN9WMA OM86H/Q8CpHc6Y/+YAh8W2uPFef6CO5XNiDhx3SZpHTv9SDgpN8k6p+n/WV3tSqMoyQChQ QNp9e2XpxclYEW1onSAE4FJ32MblGCmLR0su6v/l3e/Pqs+FpxPBgnEo6/g62/ibFsOJoO V5JbC2+E6j/4VZN4UPEHJQYQlvU4u1IpILaAzPWpBnqBiZjNfZp4ADk6kFBhtsvEHJ4b9O TbcwdqSIxkrUCU77snfAWMlo+W1NPTlI8oFuB8ssSkBin5yIBl74L/JvPObj+w== 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 4Np4NT0ZRsz19TV; Fri, 6 Jan 2023 00:44:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3060iO9X020350; Fri, 6 Jan 2023 00:44:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3060iOli020349; Fri, 6 Jan 2023 00:44:24 GMT (envelope-from git) Date: Fri, 6 Jan 2023 00:44:24 GMT Message-Id: <202301060044.3060iOli020349@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mike Karels Subject: git: 8664e266d6a4 - main - growfs(7): clarify assumptions and limitations 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: karels X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8664e266d6a4573d1875ee8f4ce0cdb091171780 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by karels: URL: https://cgit.FreeBSD.org/src/commit/?id=8664e266d6a4573d1875ee8f4ce0cdb091171780 commit 8664e266d6a4573d1875ee8f4ce0cdb091171780 Author: Mike Karels AuthorDate: 2023-01-05 13:15:21 +0000 Commit: Mike Karels CommitDate: 2023-01-06 00:44:16 +0000 growfs(7): clarify assumptions and limitations Document that the growfs(7) script works only if the root file system is in the last partition and free space immediately follows it. Don't imply that /usr can be a separate partition, as that would likely mean that root is not last. Reported by: marklmi at yahoo dot com --- share/man/man7/growfs.7 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/share/man/man7/growfs.7 b/share/man/man7/growfs.7 index 0ebc5b6f3ee0..41903023af91 100644 --- a/share/man/man7/growfs.7 +++ b/share/man/man7/growfs.7 @@ -36,6 +36,7 @@ The .Nm script normally runs at the first boot after system installation. If the boot disk is larger than the root file system and boot partitions, +and the root file system is in the last partition, .Nm can expand the root file system. It can also add a swap partition, with a default size of 10% of the boot disk. @@ -99,12 +100,17 @@ partition before this procedure in order to expand the root file system to the new size. A new swap partition can be created during the expansion. .Sh IMPLEMENTATION NOTES +The +.Nm +script only attempts to expand the root file system, +and free space must be available immediately after the root partition. +It is normally used on images that have a single file system. The script requires that -.Pa awk +.Xr awk 1 be present and in the path. This usually means that .Pa /usr -should be mounted prior to running the script. +must be available prior to running the script. .Sh FILES .Bl -tag -compact -width Pa .It Pa /etc/fstab @@ -114,7 +120,9 @@ should be mounted prior to running the script. .Ex -std .Sh SEE ALSO .Xr fstab 5 , -.Xr rc.conf 5 +.Xr rc.conf 5 , +.Xr growfs 8 , +.Xr zpool 8 .Sh HISTORY The .Nm