PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  oB]c @sdZddlZddlmZddlmZmZddlmZ ddl m Z ddlm Z ddlm Z dd lmZe jeZe Zd gZi d d 6d d6dd6edd6ed6edgd6ed6dd6iidd6ed6iidd6ed6dgd6iidd6dd6d6idd6dd6d 6d!6d"6d!6d#6d!6Zd$ZeeZd%Zd&Zd'Zd(ZdS()s<Ubuntu Drivers: Interact with third party drivers in Ubuntu.iN(tdedent(tget_schema_doctvalidate_cloudconfig_schema(tlog(t PER_INSTANCE(t temp_utils(t type_utils(tutiltubuntutcc_ubuntu_driverstidsUbuntu Driverstnames,Interact with third party drivers in Ubuntu.ttitleso This module interacts with the 'ubuntu-drivers' command to install third party driver packages.t descriptiontdistrossN drivers: nvidia: license-accepted: true texamplest frequencytobjectttypetadditionalPropertiesslicense-acceptedtrequiredtbooleans(Do you accept the NVIDIA driver license?tstringsYThe version of the driver to install (e.g. "390", "410"). Defaults to the latest version.tversiont propertiestnvidiatdriverssDubuntu-drivers: error: argument : invalid choice: 'install'sTemplate: linux/nvidia/latelink Type: boolean Default: true Description: Late-link NVIDIA kernel modules? Enable this to link the NVIDIA kernel modules in cloud-init and make them available for use. s#!/bin/sh # Allow cloud-init to trigger EULA acceptance via registering a debconf # template to set linux/nvidia/latelink true . /usr/share/debconf/confmodule db_x_loadtemplatefile "$1" cloud-init c CsJt|ts1tdtj||fnd}tjtj||}|sotj d||dStj dstj d|dgnd}tj|d}|r|d j |7}ntj d |||r|nd t j d t}tjj|d }tjj|d}z|yFtj|ttj|tjtddtj||gWn/tk r} tjtdt| nXWdtjj|rtj|nXytjddd|gWnWtjk rE} t| jkr tjdnd| j kr?tjdnnXdS(Ns.'drivers' config expected dict, found '%s': %ssnvidia/license-accepteds$Not installing NVIDIA drivers. %s=%ssubuntu-driverssI'ubuntu-drivers' command not available. Installing ubuntu-drivers-commonsubuntu-drivers-commonRsnvidia/versions:{}s<Installing and activating NVIDIA drivers (%s=%s, version=%s)tlatestt needs_exesnvidia.templatesnvidia-debconf.shtmodeis.Failed to register NVIDIA debconf template: %stinstalls--gpgpus[the available version of ubuntu-drivers is too old to perform requested driver installations"No drivers found for installation.s0ubuntu-drivers found no drivers for installation(!t isinstancetdictt TypeErrorRtobj_nameRttranslate_booltget_cfg_by_pathtLOGtdebugtwhichtformatRtmkdtemptTruetostpathtjoint write_filetNVIDIA_DEBCONF_CONTENTt encode_textt%NVIDIA_DRIVER_LATELINK_DEBCONF_SCRIPTtsubpt Exceptiontlogexctstrtisdirtdel_dirtProcessExecutionErrort OLD_UBUNTU_DRIVERS_STDERR_NEEDLEtstderrtwarningtstdout( tcfgtpkg_install_functcfgpathtnv_acct driver_argt version_cfgttdirt debconf_filetdebconf_scripttetexc((sF/usr/lib/python2.7/site-packages/cloudinit/config/cc_ubuntu_drivers.pytinstall_drivers`sV   cCsHd|kr |jd|dSt|tt|d|jjdS(NRs4Skipping module named %s, no 'drivers' key in config(R&RtschemaRHtdistrotinstall_packages(R R=tcloudRt_args((sF/usr/lib/python2.7/site-packages/cloudinit/config/cc_ubuntu_drivers.pythandles   (t__doc__R+ttextwrapRtcloudinit.config.schemaRRt cloudinitRtloggingtcloudinit.settingsRRRRt getLoggert__name__R%RRtFalseRIR9R/R1RHRN(((sF/usr/lib/python2.7/site-packages/cloudinit/config/cc_ubuntu_drivers.pytsX      "   :