Skip to content

Commit

Permalink
Add support for scos build testing
Browse files Browse the repository at this point in the history
Supported:
- scos-
- scos-coreos
- rhcos-
- rhcos-coreos

See openshift/os#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
```
  • Loading branch information
HuijingHei committed Jul 21, 2022
1 parent 710fabf commit af1ec01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/platform/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,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))
Expand Down

0 comments on commit af1ec01

Please sign in to comment.