Skip to content

Commit a15f161

Browse files
committed
add RHEL variant to IsEL() check
1 parent 5ad8612 commit a15f161

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/daemon/osrelease/osrelease.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ func (os OperatingSystem) BaseVersionMajor() string {
9191

9292
// IsEL is true if the OS is an Enterprise Linux variant of CoreOS
9393
// i.e. RHEL CoreOS (RHCOS) or CentOS Stream CoreOS (SCOS)
94+
// As of https://github.com/openshift/installer/pull/9392, the
95+
// openshift installer uses RHEL base images, so rhel is now
96+
// considered a valid "Enterprise Linux" variant.
9497
func (os OperatingSystem) IsEL() bool {
95-
return os.id == rhcos || os.id == scos
98+
return os.id == rhcos || os.id == scos || os.id == rhel
9699
}
97100

98101
// IsEL8 is true if the OS is RHCOS 8 or SCOS 8

0 commit comments

Comments
 (0)