mirror of
https://github.com/containers/podman.git
synced 2026-03-28 11:33:11 -04:00
Given the switch to pulling oci artifacts for podman, we no longer need a fair bit of fedora coreos code for automatically downloading images. [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
16 lines
269 B
Go
16 lines
269 B
Go
package vmconfigs
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func NormalizeMachineArch(arch string) (string, error) {
|
|
switch arch {
|
|
case "arm64", "aarch64":
|
|
return "aarch64", nil
|
|
case "x86_64", "amd64":
|
|
return "x86_64", nil
|
|
}
|
|
return "", fmt.Errorf("unsupported platform %s", arch)
|
|
}
|