aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/busybox.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-07 19:45:36 +0900
committerOphestra <cat@gensokyo.uk>2026-05-07 20:01:44 +0900
commit65b7dd8b37e3a4eac6a4081f147f98b9a251da91 (patch)
tree77d4235210ec5d0155c9bd0969027b68f396dfcc /internal/rosa/busybox.go
parent8d72b9e5bd8d99cbd32ce0ebe2f5da8e9b1d88ce (diff)
internal/rosa: configurable architecture
This enables curing via binfmt. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/busybox.go')
-rw-r--r--internal/rosa/busybox.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/rosa/busybox.go b/internal/rosa/busybox.go
index 437e05e4..fcfe1648 100644
--- a/internal/rosa/busybox.go
+++ b/internal/rosa/busybox.go
@@ -5,7 +5,6 @@ import (
"io"
"net/http"
"os"
- "runtime"
"time"
"hakurei.app/fhs"
@@ -88,7 +87,7 @@ func (a busyboxBin) Cure(t *pkg.TContext) (err error) {
// the https://busybox.net/downloads/binaries/ binary release.
func newBusyboxBin() pkg.Artifact {
var version, url, checksum string
- switch runtime.GOARCH {
+ switch arch {
case "amd64":
version = "1.35.0"
url = "https://busybox.net/downloads/binaries/" +
@@ -101,7 +100,7 @@ func newBusyboxBin() pkg.Artifact {
checksum = "npJjBO7iwhjW6Kx2aXeSxf8kXhVgTCDChOZTTsI8ZfFfa3tbsklxRiidZQdrVERg"
default:
- panic("unsupported target " + runtime.GOARCH)
+ panic("unsupported target " + arch)
}
return pkg.NewExec(