@@ -50,11 +50,11 @@ class baseimage(object):
5050
5151 _distro: The underlying Linux distribution of the base image.
5252 Valid values are `centos`, `centos7`, `centos8`, `redhat`, `rhel`,
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.
53+ `rhel7`, `rhel8`, `rockylinux8`, `rockylinux9`, `rockylinux10 `,
54+ `ubuntu`, `ubuntu16`, ` ubuntu18`, `ubuntu20`, `ubuntu22`, and `ubuntu24`.
55+ By default, the primitive attempts to figure out the Linux distribution
56+ by inspecting the image identifier, and falls back to `ubuntu` if unable
57+ to determine the Linux distribution automatically.
5858
5959 _docker_env: Boolean specifying whether to load the Docker base
6060 image environment, i.e., source
@@ -139,6 +139,8 @@ def __init__(self, **kwargs):
139139 hpccm .config .set_linux_distro ('rockylinux8' )
140140 elif self .__distro == 'rockylinux9' :
141141 hpccm .config .set_linux_distro ('rockylinux9' )
142+ elif self .__distro == 'rockylinux10' :
143+ hpccm .config .set_linux_distro ('rockylinux10' )
142144 elif re .search (r'centos:?7' , self .image ):
143145 hpccm .config .set_linux_distro ('centos7' )
144146 elif re .search (r'centos:?8' , self .image ):
@@ -147,6 +149,8 @@ def __init__(self, **kwargs):
147149 hpccm .config .set_linux_distro ('rockylinux8' )
148150 elif re .search (r'rockylinux:?9' , self .image ):
149151 hpccm .config .set_linux_distro ('rockylinux9' )
152+ elif re .search (r'rockylinux:?10' , self .image ):
153+ hpccm .config .set_linux_distro ('rockylinux10' )
150154 elif re .search (r'centos|rhel|redhat' , self .image ):
151155 hpccm .config .set_linux_distro ('centos' )
152156 elif re .search (r'ubi:?7' , self .image ):
0 commit comments