From 49d58ea6777dc4f1e736b2b9d8c7f5bdb9fac0cc Mon Sep 17 00:00:00 2001 From: Huijing Hei Date: Fri, 10 Jun 2022 16:44:36 +0800 Subject: [PATCH] Add support for scos build testing Supported: - scos- - scos-coreos - rhcos- - rhcos-coreos See https://github.com/openshift/os/pull/773 Fix issue ``` $ cosa kola run ostree.basic harness.go:1443: mach.Start() failed: machine "ea43750e-e04b-4632-b966-caff659a5214" failed basic checks: not a supported instance: scos-coreos ``` --- mantle/platform/platform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mantle/platform/platform.go b/mantle/platform/platform.go index f4570957fd..c7ef6733aa 100644 --- a/mantle/platform/platform.go +++ b/mantle/platform/platform.go @@ -493,7 +493,7 @@ func CheckMachine(ctx context.Context, m Machine) error { switch string(out) { case `fedora-coreos`: distribution = "fcos" - case `centos-coreos`, `rhcos-`: + case `scos-`, `scos-coreos`, `rhcos-`, `rhcos-coreos`: distribution = "rhcos" default: return fmt.Errorf("not a supported instance: %v", string(out))