Skip to content

Commit f5aafe0

Browse files
authored
Merge pull request ceph#64657 from ceph/wip-main-rocky9
build: Rocky 9 support
2 parents ce6c4a9 + 2996390 commit f5aafe0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

install-deps.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -504,14 +504,11 @@ else
504504
$SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
505505
$SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save
506506
$SUDO dnf -y module enable javapackages-tools
507-
elif test $ID = centos -a $MAJOR_VERSION = 9 ; then
507+
elif { [ "$ID" = centos ] || [ "$ID" = rocky ]; } && [ "$MAJOR_VERSION" -ge 9 ]; then
508508
$SUDO dnf config-manager --set-enabled crb
509-
elif test $ID = centos -a $MAJOR_VERSION = 10 ; then
510-
$SUDO dnf config-manager --set-enabled crb
511-
setup_lab_extras_repo
512-
elif test $ID = rocky -a $MAJOR_VERSION = 10 ; then
513-
$SUDO dnf config-manager --set-enabled crb
514-
setup_lab_extras_repo
509+
if [ "$MAJOR_VERSION" -eq 10 ]; then
510+
setup_lab_extras_repo
511+
fi
515512
elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then
516513
dts_ver=11
517514
$SUDO dnf config-manager --set-enabled "codeready-builder-for-rhel-8-${ARCH}-rpms"

src/script/build-with-container.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class DistroKind(StrEnum):
105105
CENTOS8 = "centos8"
106106
CENTOS9 = "centos9"
107107
FEDORA41 = "fedora41"
108+
ROCKY9 = "rocky9"
108109
ROCKY10 = "rocky10"
109110
UBUNTU2204 = "ubuntu22.04"
110111
UBUNTU2404 = "ubuntu24.04"
@@ -116,6 +117,7 @@ def uses_dnf(cls):
116117
cls.CENTOS8,
117118
cls.CENTOS9,
118119
cls.FEDORA41,
120+
cls.ROCKY9,
119121
cls.ROCKY10,
120122
}
121123

@@ -135,6 +137,8 @@ def aliases(cls):
135137
"centos9stream": cls.CENTOS9,
136138
str(cls.FEDORA41): cls.FEDORA41,
137139
"fc41": cls.FEDORA41,
140+
str(cls.ROCKY9): cls.ROCKY9,
141+
'rockylinux9': cls.ROCKY9,
138142
str(cls.ROCKY10): cls.ROCKY10,
139143
'rockylinux10': cls.ROCKY10,
140144
str(cls.UBUNTU2204): cls.UBUNTU2204,
@@ -155,6 +159,7 @@ class DefaultImage(StrEnum):
155159
CENTOS8 = "quay.io/centos/centos:stream8"
156160
CENTOS9 = "quay.io/centos/centos:stream9"
157161
FEDORA41 = "registry.fedoraproject.org/fedora:41"
162+
ROCKY9 = "docker.io/rockylinux/rockylinux:9"
158163
ROCKY10 = "docker.io/rockylinux/rockylinux:10"
159164
UBUNTU2204 = "docker.io/ubuntu:22.04"
160165
UBUNTU2404 = "docker.io/ubuntu:24.04"

0 commit comments

Comments
 (0)