From nobody Fri Jan 13 20:59:46 2023 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 4Ntv1b0sGqz2pC1M; Fri, 13 Jan 2023 20:59:47 +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 4Ntv1b0Q2Tz3tcR; Fri, 13 Jan 2023 20:59:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673643587; 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=mO6TPYE5LzV11yo5HC0KNvty6shezzsA0GUihpdLY9E=; b=Tg5dpJ3M6Jr692q7mhBhAg54aUs2w5drwFQDwsYNtNWrs0uAkIdbV8o2Bp8WwUQUz9Fi+w gmUWwJNWlkksAERndRVMmqgMzs6wBn3Lbo1lw7Pxsd/NjInF3HrjmFWzN1rsq74rl5XVXZ IQcIj7358V0z8sZSSOw9T5PDW3zWxYbASywj/SvgGPYwZcwzFqTwP59bszY987U2xwBZM2 /wofUQmZqi/8/6P15Z0QlPlOS2h1JRlMdIVQHLtr/u5jlgiqCTfsRQnNI/Qe+8wFG2QCTQ xR83GbgPTyPTVjdxH4+G/bRmOKlCVZPh//fX5Fpa8UePTnuH96KlVGXV9HTnlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673643587; 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=mO6TPYE5LzV11yo5HC0KNvty6shezzsA0GUihpdLY9E=; b=WZNH0GkaQayYFtndl+AxMXhdFJhzFpOr2vM12Ho+S4ebatYAze9ZQao0FRuBdPCkHgEgpG gWTtKSl6YEs4oNjVkwKaGz4FgnC8J1HGCG/+W4sUC0Fwp7bxUtUsh79HLTvCTKZh+ErCJZ 3l6A1KCMJoG3o+uA8O5RgWRE1RFg1SxAQSyYARai1L9td9Z60CbyW10qCB1Q1AgGREX69I tiJJBT8vfevUevA468/OE7EAAf8eHGpRL0bRO+mB+bylT+rLxC+z7DnY11NPv5YSlA104r oQ70M1LKkHju3dGvQZFAlKzjVfx5jVQpKD4hYoMqUCAfzatp9O+pC3ByycxJwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673643587; a=rsa-sha256; cv=none; b=DThJ1X6cILoBaPLylYDFlMF1vVd+h5MkLqRlrQg/O8aPqO2TOAhufEmA2Dq1pQgvNK0Hnq S1pPK1ogw6zgSMf0c7agZ8JZtlxtDh5wcKYhRqyp2VE+7I6l5v7SrWG8RNuMZhdNLK8V44 xM34kKbEkN4H53c16BU4Krb5Zggjbjd1Hhjr1jEzwhKoliFsQ/BN0frEpXp2h+a+ym0h4N MeOJUYcuqTNWXv4/xXv7rGXPNRgw3oD9Jgdo4hC+tUT9jV3tASguildhG4YWUfT1aX3ydv SOlt8qIE4czEPAThkEVbOGmUk5mp1MN0iD1thfCiM+8eKkJUDeS2MPYv/ALo+A== 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 4Ntv1Z6BH0zLy0; Fri, 13 Jan 2023 20:59:46 +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 30DKxkQH097211; Fri, 13 Jan 2023 20:59:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30DKxknM097210; Fri, 13 Jan 2023 20:59:46 GMT (envelope-from git) Date: Fri, 13 Jan 2023 20:59:46 GMT Message-Id: <202301132059.30DKxknM097210@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mike Karels Subject: git: 5a20fcd199ba - stable/13 - growfs(7): clarify assumptions and limitations 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 5a20fcd199ba4b5290e3d7c01722459a3ab2d450 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by karels: URL: https://cgit.FreeBSD.org/src/commit/?id=5a20fcd199ba4b5290e3d7c01722459a3ab2d450 commit 5a20fcd199ba4b5290e3d7c01722459a3ab2d450 Author: Mike Karels AuthorDate: 2023-01-05 13:15:21 +0000 Commit: Mike Karels CommitDate: 2023-01-13 19:15:58 +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 (cherry picked from commit 8664e266d6a4573d1875ee8f4ce0cdb091171780) --- 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