Skip to content

Commit

Permalink
Add check for rocky linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Dec 18, 2023
1 parent c53895c commit c89a345
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cluster/operation/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ func checkOSInfo(opt *CheckOptions, osInfo *sysinfo.OS) *CheckResult {
osInfo.Name, osInfo.Release)
return result
}
case "rocky":
// Rocky Linux
if ver, _ := strconv.ParseFloat(osInfo.Version, 64); ver < 9.1 {
result.Err = fmt.Errorf("%s %s not supported, use version 9.1 or later please",
osInfo.Name, osInfo.Release)
return result
}
case "debian":
// debian support is not fully tested, but we suppose it should work
msg := "debian support is not fully tested, be careful"
Expand Down

0 comments on commit c89a345

Please sign in to comment.