From bc3dd6fbb0048bfdbb50f90873c0f7e3f952981a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 30 Jan 2026 00:29:15 +0900 Subject: internal/rosa: chmod via patch helper This works around the zfs overlay mount overhead and significantly reduces I/O in general. Signed-off-by: Ophestra --- internal/rosa/git.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'internal/rosa/git.go') diff --git a/internal/rosa/git.go b/internal/rosa/git.go index 6773cb93..e29e2032 100644 --- a/internal/rosa/git.go +++ b/internal/rosa/git.go @@ -20,16 +20,18 @@ func (t Toolchain) newGit() pkg.Artifact { t.Load(Zlib), ), nil, nil, ` -chmod -R +w /usr/src/git && cd /usr/src/git +cd /usr/src/git make configure ./configure --prefix=/system make "-j$(nproc)" all make DESTDIR=/work install -`, pkg.Path(AbsUsrSrc.Append("git"), true, pkg.NewHTTPGetTar( - nil, "https://www.kernel.org/pub/software/scm/git/"+ - "git-"+version+".tar.gz", - mustDecode(checksum), - pkg.TarGzip, +`, pkg.Path(AbsUsrSrc.Append("git"), true, t.NewPatchedSource( + "git", version, pkg.NewHTTPGetTar( + nil, "https://www.kernel.org/pub/software/scm/git/"+ + "git-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), false, ))) } func init() { artifactsF[Git] = Toolchain.newGit } -- cgit v1.3.1