From 30eb0d6a613ad268f6805ccbcdcabf158e7f526f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 17 May 2026 13:07:12 +0900 Subject: internal/rosa: key metadata by string For upcoming azalea integration. The API is quite ugly right now to ease migration. Signed-off-by: Ophestra --- internal/rosa/busybox.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/rosa/busybox.go') diff --git a/internal/rosa/busybox.go b/internal/rosa/busybox.go index 9a78d4d2..32d903a6 100644 --- a/internal/rosa/busybox.go +++ b/internal/rosa/busybox.go @@ -85,13 +85,13 @@ func (a busyboxBin) Cure(t *pkg.TContext) (err error) { // newBusyboxBin returns a [pkg.Artifact] containing a busybox installation from // the https://busybox.net/downloads/binaries/ binary release. -func newBusyboxBin() pkg.Artifact { +func (s *S) newBusyboxBin() pkg.Artifact { var version, url, checksum string - switch arch { + switch s.arch { case "amd64": version = "1.35.0" url = "https://busybox.net/downloads/binaries/" + - version + "-" + linuxArch() + "-linux-musl/busybox" + version + "-" + s.linuxArch() + "-linux-musl/busybox" checksum = "L7OBIsPu9enNHn7FqpBT1kOg_mCLNmetSeNMA3i4Y60Z5jTgnlX3qX3zcQtLx5AB" case "arm64": version = "1.31.0" @@ -100,11 +100,11 @@ func newBusyboxBin() pkg.Artifact { checksum = "npJjBO7iwhjW6Kx2aXeSxf8kXhVgTCDChOZTTsI8ZfFfa3tbsklxRiidZQdrVERg" default: - panic("unsupported target " + arch) + panic("unsupported target " + s.arch) } return pkg.NewExec( - "busybox-bin-"+version, arch, nil, pkg.ExecTimeoutMax, false, false, + "busybox-bin-"+version, s.arch, nil, pkg.ExecTimeoutMax, false, false, fhs.AbsRoot, []string{ "PATH=/system/bin", }, -- cgit v1.3.1