From 65b7dd8b37e3a4eac6a4081f147f98b9a251da91 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 7 May 2026 19:45:36 +0900 Subject: internal/rosa: configurable architecture This enables curing via binfmt. Signed-off-by: Ophestra --- internal/rosa/busybox.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/rosa/busybox.go') 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( -- cgit v1.3.1