From a517bfbd9e5fff86c48b15b43360f17bf05479a9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 24 Mar 2020 14:37:38 +0000 Subject: [PATCH] system/arch: Fix ppc64le arch mapping The previous code here wasn't right for ppc64. https://github.com/coreos/coreos-assembler/pull/1257#issuecomment-603259804 While we're here turn consolidate ppc64le+s390x into "list of arches that don't need mapping". --- mantle/system/arch.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mantle/system/arch.go b/mantle/system/arch.go index 407a36639c..8dde76a0de 100644 --- a/mantle/system/arch.go +++ b/mantle/system/arch.go @@ -27,10 +27,8 @@ func RpmArch() string { return "x86_64" case "arm64": return "aarch64" - case "ppc64": - return "ppc64le" - case "s390x": - return "s390x" + case "ppc64le", "s390x": + return goarch default: panic(fmt.Sprintf("RpmArch: No mapping defined for GOARCH %s", goarch)) }