From c89a345f023f23b600ca88dd7a63e140ab8f2989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 18 Dec 2023 09:09:11 +0100 Subject: [PATCH] Add check for rocky linux --- pkg/cluster/operation/check.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/cluster/operation/check.go b/pkg/cluster/operation/check.go index f04981518e..cc2d2227fa 100644 --- a/pkg/cluster/operation/check.go +++ b/pkg/cluster/operation/check.go @@ -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"