diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-30 00:29:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-30 00:29:44 +0900 |
| commit | bc3dd6fbb0048bfdbb50f90873c0f7e3f952981a (patch) | |
| tree | 5695198e3a709d40bbff335e73421be636f9efbb /internal/rosa/musl.go | |
| parent | 616ed29edf92fb2d60962058a3e2c545d3b652ea (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/musl.go')
| -rw-r--r-- | internal/rosa/musl.go | 15 |
1 files changed, 7 insertions, 8 deletions
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, ))) } |
