@@ -50,11 +50,11 @@ class baseimage(object):
50
50
51
51
_distro: The underlying Linux distribution of the base image.
52
52
Valid values are `centos`, `centos7`, `centos8`, `redhat`, `rhel`,
53
- `rhel7`, `rhel8`, `rockylinux8`, `ubuntu `, `ubuntu16 `, `ubuntu18 `,
54
- `ubuntu20`, and `ubuntu22 `. By default, the primitive attempts to
55
- figure out the Linux distribution by inspecting the image
56
- identifier, and falls back to `ubuntu` if unable to determine the
57
- Linux distribution automatically.
53
+ `rhel7`, `rhel8`, `rockylinux8`, `rockylinux9 `, `ubuntu `, `ubuntu16 `,
54
+ `ubuntu18`, ` ubuntu20`, `ubuntu22`, and `ubuntu24 `. By default, the
55
+ primitive attempts to figure out the Linux distribution by inspecting
56
+ the image identifier, and falls back to `ubuntu` if unable to determine
57
+ the Linux distribution automatically.
58
58
59
59
_docker_env: Boolean specifying whether to load the Docker base
60
60
image environment, i.e., source
@@ -135,12 +135,16 @@ def __init__(self, **kwargs):
135
135
hpccm .config .set_linux_distro ('rhel8' )
136
136
elif self .__distro == 'rockylinux8' :
137
137
hpccm .config .set_linux_distro ('rockylinux8' )
138
+ elif self .__distro == 'rockylinux9' :
139
+ hpccm .config .set_linux_distro ('rockylinux9' )
138
140
elif re .search (r'centos:?7' , self .image ):
139
141
hpccm .config .set_linux_distro ('centos7' )
140
142
elif re .search (r'centos:?8' , self .image ):
141
143
hpccm .config .set_linux_distro ('centos8' )
142
144
elif re .search (r'rockylinux:?8' , self .image ):
143
145
hpccm .config .set_linux_distro ('rockylinux8' )
146
+ elif re .search (r'rockylinux:?9' , self .image ):
147
+ hpccm .config .set_linux_distro ('rockylinux9' )
144
148
elif re .search (r'centos|rhel|redhat' , self .image ):
145
149
hpccm .config .set_linux_distro ('centos' )
146
150
elif re .search (r'ubi:?7' , self .image ):
@@ -155,6 +159,8 @@ def __init__(self, **kwargs):
155
159
hpccm .config .set_linux_distro ('ubuntu20' )
156
160
elif re .search (r'ubuntu:?22' , self .image ):
157
161
hpccm .config .set_linux_distro ('ubuntu22' )
162
+ elif re .search (r'ubuntu:?24' , self .image ):
163
+ hpccm .config .set_linux_distro ('ubuntu24' )
158
164
elif re .search (r'ubuntu' , self .image ):
159
165
hpccm .config .set_linux_distro ('ubuntu' )
160
166
else :
0 commit comments