diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-29 02:00:32 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-29 02:00:32 +0900 |
| commit | 79c0106ea091ac042621874876385a848a287f34 (patch) | |
| tree | 80e38b711079b1c090b11ad07551b4d3012b1776 /internal/rosa/rosa.go | |
| parent | 536db533de2be6ffca53b7f3ef7ad042699b8e84 (diff) | |
internal/rosa: replace busybox dash with mksh
Toybox does not provide a shell, mksh fills that gap.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/rosa.go')
| -rw-r--r-- | internal/rosa/rosa.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index f90626a3..9e4adcc4 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -189,14 +189,16 @@ func (t Toolchain) New( const lcMessages = "LC_MESSAGES=C.UTF-8" var ( - path = AbsSystem.Append("bin", "busybox") - args = []string{"hush", absCureScript.String()} + path = AbsSystem.Append("bin", "sh") + args = []string{"mksh", absCureScript.String()} support []pkg.Artifact ) switch t { case toolchainBusybox: name += "-early" support = slices.Concat([]pkg.Artifact{newBusyboxBin()}, extra) + path = AbsSystem.Append("bin", "busybox") + args[0] = "hush" env = fixupEnviron(env, nil, "/system/bin") case toolchainStage3: @@ -252,6 +254,7 @@ ln -vs ../usr/bin /work/bin compilerRT, runtimes, clang, + boot.Load(Mksh), boot.Load(Busybox), }) env = fixupEnviron(env, []string{ |
