aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-22 04:21:06 +0900
committerOphestra <cat@gensokyo.uk>2026-01-22 04:21:06 +0900
commit20a8d30821e8f33f77acf28d0b6935adbb05e6a1 (patch)
treeefadb911cc91829b9386b11c7467b228e5ac8053
parentcdf2e4a2fb364599f2ac186f98f35384032277f4 (diff)
internal/rosa/busybox: link /usr/bin/env
This is required by many scripts which uses bash but still pretends to be portable. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/busybox.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/rosa/busybox.go b/internal/rosa/busybox.go
index 25baee95..0d9c6c78 100644
--- a/internal/rosa/busybox.go
+++ b/internal/rosa/busybox.go
@@ -325,6 +325,8 @@ mkdir -pv /work/system/bin/
busybox --install -s /work/system/bin/
cp -v busybox /work/system/bin/
ln -vs ../system/bin/hush /work/bin/sh
+mkdir -vp /work/usr/bin/
+ln -vs ../../system/bin/busybox /work/usr/bin/env
`, pkg.Path(AbsUsrSrc.Append("busybox"), true, pkg.NewHTTPGetTar(
&http.Client{Transport: &http.Transport{
// busybox website is really slow to respond