diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-27 20:58:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-27 20:58:31 +0900 |
| commit | a2a0e36802131397ce9be36a3c11034e399931b0 (patch) | |
| tree | 50b261851f58064db56c32b15d8e128fd32baab0 /internal | |
| parent | fbe93fc7716782e42f53cd1be042cf293472039d (diff) | |
internal/rosa: cross-platform stage3
The stage3 binary seed is arch-specific.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/rosa.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index 6b092fdf..5c3b030e 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -199,10 +199,18 @@ func (t Toolchain) New( case toolchainStage3: name += "-boot" - const ( - version = "20260111T160052Z" + var version, checksum string + switch runtime.GOARCH { + case "amd64": + version = "20260111T160052Z" checksum = "c5_FwMnRN8RZpTdBLGYkL4RR8ampdaZN2JbkgrFLe8-QHQAVQy08APVvIL6eT7KW" - ) + case "arm64": + version = "20260125T234618Z" + checksum = "79uRbRI44PyknQQ9RlFUQrwqplup7vImiIk6klefL8TN-fT42TXMS_v4XszwexCb" + + default: + panic("unsupported target " + runtime.GOARCH) + } path = fhs.AbsRoot.Append("bin", "bash") args[0] = "bash" support = slices.Concat([]pkg.Artifact{ |
