Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2026 17:04:40 +0000
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Cc:        William Carrel <william.a@carrel.org>
Subject:   git: d437d1f1d536 - stable/14 - GCE: Fix growfs path
Message-ID:  <696286a8.338d1.54e87d98@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=d437d1f1d5367af81417de9e0dc84d6a0e6846a1

commit d437d1f1d5367af81417de9e0dc84d6a0e6846a1
Author:     William Carrel <william.a@carrel.org>
AuthorDate: 2026-01-08 08:49:42 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-01-10 17:04:01 +0000

    GCE: Fix growfs path
    
    The sed command was missing the ${DESTDIR} prefix, meaning it was
    attempting to modify the build host's /etc/rc.d/growfs instead of
    the target image's script. Tested in an arm64 builder that builds
    as non-root.
    
    PR:             kern/292081
    
    (cherry picked from commit 709c1049fe0c6d0217e81268d4f33f7191474453)
---
 release/tools/gce.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release/tools/gce.conf b/release/tools/gce.conf
index 4eadb1d76b92..ef1cf6abea31 100644
--- a/release/tools/gce.conf
+++ b/release/tools/gce.conf
@@ -26,7 +26,7 @@ vm_extra_install_base() {
 vm_extra_pre_umount() {
 	# Enable growfs on every boot, not only the first, as as instance's disk can
 	# be enlarged post-creation
-	sed -i -e '/KEYWORD: firstboot/d' /etc/rc.d/growfs
+	sed -i -e '/KEYWORD: firstboot/d' ${DESTDIR}/etc/rc.d/growfs
 
 	cat << EOF >> ${DESTDIR}/etc/rc.conf
 dumpdev="AUTO"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?696286a8.338d1.54e87d98>