diff --git a/g5k-postinstall b/g5k-postinstall index b2a003b484fe0f53362919c3cd2d4658b9cabfee..b23df9f3bb6f9e20d67af01fd1c8b060130daf14 100755 --- a/g5k-postinstall +++ b/g5k-postinstall @@ -769,6 +769,20 @@ if $mysite == 'nancy' and ( $mycluster == 'grcinq' or $mycluster == 'grvingt' ) end end +# Disable some hwloc components under Debian 11 big and std on clusters without GPU. +# cf. Bug #13260 +unless $no_ref_api + envrelease = IO::read("#{DSTDIR}/etc/grid5000/release") rescue "" + if /debian11.*-(big|std)/.match?(envrelease) && !$myjson.key?('gpu_devices') + $logger.info("Disabling some hwlock components") + File::open("#{DSTDIR}/etc/environment", "a") do |fd| + fd.puts <<-EOF +HWLOC_COMPONENTS=-opencl,-cuda,-nvml + EOF + end + end +end + ############################## bootloader ##################################### FileUtils.mkdir_p('/var/lib/kadeploy/bootloader/')