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/musl.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'internal/rosa/musl.go') diff --git a/internal/rosa/musl.go b/internal/rosa/musl.go index a90c5be3..78487226 100644 --- a/internal/rosa/musl.go +++ b/internal/rosa/musl.go @@ -48,18 +48,17 @@ rmdir -v /work/lib ), nil, slices.Concat([]string{ "ROSA_MUSL_TARGET=" + target, }, attr.Env), ` -# expected to be writable in copies -chmod -R +w /usr/src/musl/ - cd "$(mktemp -d)" /usr/src/musl/configure \ --prefix=/system \ --target="${ROSA_TRIPLE}" make "-j$(nproc)" DESTDIR=/work "${ROSA_MUSL_TARGET}" -`+script, pkg.Path(AbsUsrSrc.Append("musl"), true, pkg.NewHTTPGetTar( - nil, - "https://musl.libc.org/releases/musl-"+version+".tar.gz", - mustDecode(checksum), - pkg.TarGzip, +`+script, pkg.Path(AbsUsrSrc.Append("musl"), false, t.NewPatchedSource( + // expected to be writable in copies + "musl", version, pkg.NewHTTPGetTar( + nil, "https://musl.libc.org/releases/musl-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), false, ))) } -- cgit v1.3.1