def __distro(self):
        """Based on the Linux distribution, set values accordingly.  A user
           specified value overrides any defaults."""

        if hpccm.config.g_linux_distro == linux_distro.UBUNTU:
            if not self.__oslabel:
                if hpccm.config.g_linux_version >= Version('24.0'):
                    self.__oslabel = 'ubuntu24.04'
                elif hpccm.config.g_linux_version >= Version('22.0'):
                    self.__oslabel = 'ubuntu22.04'
                else:
                    self.__oslabel = 'ubuntu20.04'

            if not self.__packages:
                self.__packages = ['libibverbs1', 'libibverbs-dev',
                                   'ibverbs-providers', 'ibverbs-utils',
                                   'libibmad5',  'libibmad-dev',
                                   'libibumad3', 'libibumad-dev',
                                   'librdmacm-dev', 'librdmacm1']

        elif hpccm.config.g_linux_distro == linux_distro.CENTOS:
            if not self.__oslabel:
                if hpccm.config.g_linux_version >= Version('9.0'):
                    self.__oslabel = 'rhel9.2'
                else:
                    self.__oslabel = 'rhel8.6'

            if not self.__packages:
                    self.__packages = ['libibverbs', 'libibverbs-utils',
                                       'libibumad', 'librdmacm',
                                       'rdma-core', 'rdma-core-devel']

        else: # pragma: no cover
            raise RuntimeError('Unknown Linux distribution')
Based on the Linux distribution, set values accordingly.  A user
           specified value overrides any defaults.
hpccm/building_blocks/doca_ofed.py