+
    iN                       a  R t0 t R t^ RIt^ RIt^ RIHt ^ RIHt  ^ RItRt	^ RIHtHtHtHt ^ RIHt ^ RIHt ^ R	IHt ]P,                  ! ]4      tR
RRR.R]RR./t] ^ k RtRtRtR R ltR R ltR#   ]
 d    RtRt	 Lai ; i)z<Ubuntu Drivers: Interact with third party drivers in Ubuntu.N)CloudDistroTF)subp
temp_utils
type_utilsutil)Config)
MetaSchema)PER_INSTANCEidcc_ubuntu_driversdistrosubuntu	frequencyactivate_by_schema_keysdriverszDubuntu-drivers: error: argument <command>: invalid choice: 'install'zTemplate: 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.
X_LOADTEMPLATEFILEc                $    V ^8  d   QhR\         /# )   distror   )formats   "D/usr/lib/python3/dist-packages/cloudinit/config/cc_ubuntu_drivers.py__annotate__r   9   s     = =6 =    c                 $   \        V \        4      '       g(   \        R \        P                  ! V 4      : RV : 24      hRp\
        P                  ! \
        P                  ! W4      4      pV'       g   \        P                  RW44       R# \        P                  ! R4      '       g   \        P                  R4       V! R.4       Rp\
        P                  ! V R	4      pV'       d   VR
P                  V4      ,          p\        P                  RTTV'       d   TMR4       \        P                  ! VP                  4       RR7      p\         P"                  P%                  VR4      p \
        P&                  ! V\(        4       \*        P,                  ! R4      ;_uu_ 4       p	V	P/                  \0        V4       RRR4       \         P"                  P9                  T4      '       d   \
        P:                  ! T4        \        P                  ! RRRT.4       R#   + '       g   i     Lh; i  \2         d,   p
\
        P4                  ! \        R\7        T
4      4       h Rp
?
ii ; i  \         P"                  P9                  T4      '       d   \
        P:                  ! T4       i i ; i  \        P<                   dX   p\>        TP@                  9   d   \        PC                  R4       h RTPD                  9   d   \        PC                  R4       h Rp?ii ; i)z''drivers' config expected dict, found 'z': znvidia/license-acceptedz$Not installing NVIDIA drivers. %s=%sNzubuntu-driverszI'ubuntu-drivers' command not available.  Installing ubuntu-drivers-commonzubuntu-drivers-commonnvidiaznvidia/versionz:{}z<Installing and activating NVIDIA drivers (%s=%s, version=%s)latestT)dir	needs_exeznvidia.templatez
cloud-initz.Failed to register NVIDIA debconf template: %sinstallz--gpgpuz[the available version of ubuntu-drivers is too old to perform requested driver installationz"No drivers found for installation.z0ubuntu-drivers found no drivers for installation)#
isinstancedict	TypeErrorr   obj_namer   translate_boolget_cfg_by_pathLOGdebugr   whichr   r   mkdtempget_tmp_exec_pathospathjoin
write_fileNVIDIA_DEBCONF_CONTENTdebconfDebconfCommunicatorcommandr   	Exceptionlogexcstrisdirdel_dirProcessExecutionError OLD_UBUNTU_DRIVERS_STDERR_NEEDLEstderrwarningstdout)cfgpkg_install_funcr   cfgpathnv_acc
driver_argversion_cfgtdirdebconf_filedceexcs   &&&         r   install_driversrI   9   s@   c4  ""3'.
 	

 (G   !5!5c!CDF		8'J::&''		/	
 	123J&&s,<=Kell;//
IIF"	 &":":"<MD77<<&78L&<=((66"JJ)<8 7 77==LL
		#Y	:FG 76 A3q6	
 		 77==LL 
 %% +szz9KKD 	 2SZZ?KKJKsa   &9H) H6H) :J# H&	!H) %I" &H) )I4&III" ">J #L8AL

Lc          
      L    V ^8  d   QhR\         R\        R\        R\        RR/# )r   namer>   cloudargsreturnN)r6   r	   r   list)r   s   "r   r   r   y   s/       6 % t  r   c                     R V9  d   \         P                  RV 4       R# \        '       g   \         P                  RV 4       R# \	        VR ,          VP
                  P                  VP
                  4       R# )r   z4Skipping module named %s, no 'drivers' key in configNz<Skipping module named %s, 'python3-debconf' is not installed)r'   r(   HAS_DEBCONFr<   rI   r   install_packages)rK   r>   rL   rM   s   &&&&r   handlerS   y   sY    		H$O;J	
 	I55u||r   c                @    V ^8  d   Qh/ ^ \         9   d
   \        ;R&   # )r   meta)__conditional_annotations__r
   )r   s   "r   r   r      s     B B0 j 1 Cr   ) rV   __doc__loggingr,   cloudinit.cloudr   cloudinit.distrosr   r1   rQ   ImportError	cloudinitr   r   r   r   cloudinit.configr	   cloudinit.config.schemar
   cloudinit.settingsr   	getLogger__name__r'   rU   r:   r0   r   rI   rS   r   )rV   s   @r   <module>rb      s    C  	 ! $K 9 8 # . +! 	
z	{	  K !  * =@U  GKs   A8 8BB