@@ -51,10 +51,10 @@ class baseimage(object):
5151 _distro: The underlying Linux distribution of the base image.
5252 Valid values are `centos`, `centos7`, `centos8`, `redhat`, `rhel`,
5353 `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.
54+ `ubuntu`, `ubuntu16`, `ubuntu18`, `ubuntu20`, `ubuntu22`, `ubuntu24`,
55+ and `ubuntu26`. By default, the primitive attempts to figure out the
56+ Linux distribution by inspecting the image identifier, and falls back
57+ to `ubuntu` if unable to determine the Linux distribution automatically.
5858
5959 _docker_env: Boolean specifying whether to load the Docker base
6060 image environment, i.e., source
@@ -123,6 +123,8 @@ def __init__(self, **kwargs):
123123 hpccm .config .set_linux_distro ('ubuntu22' )
124124 elif self .__distro == 'ubuntu24' :
125125 hpccm .config .set_linux_distro ('ubuntu24' )
126+ elif self .__distro == 'ubuntu26' :
127+ hpccm .config .set_linux_distro ('ubuntu26' )
126128 elif self .__distro == 'centos' :
127129 hpccm .config .set_linux_distro ('centos' )
128130 elif self .__distro == 'centos7' :
@@ -167,6 +169,8 @@ def __init__(self, **kwargs):
167169 hpccm .config .set_linux_distro ('ubuntu22' )
168170 elif re .search (r'ubuntu:?24' , self .image ):
169171 hpccm .config .set_linux_distro ('ubuntu24' )
172+ elif re .search (r'ubuntu:?26' , self .image ):
173+ hpccm .config .set_linux_distro ('ubuntu26' )
170174 elif re .search (r'ubuntu' , self .image ):
171175 hpccm .config .set_linux_distro ('ubuntu' )
172176 else :
0 commit comments