Ë
    x[h  ã            
       óº   — U d Z ddlZddlmZmZmZmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ  ej                  e«      ZeZdd	ged
gdœZeed<   dede
dededdf
d„Zy)z:Bootcmd: run arbitrary commands early in the boot process.é    N)Úsignal_handlerÚsubpÚ
temp_utilsÚutil)ÚCloud)ÚConfig)Ú
MetaSchema)Ú
PER_ALWAYSÚ
cc_bootcmdÚallÚbootcmd)ÚidÚdistrosÚ	frequencyÚactivate_by_schema_keysÚmetaÚnameÚcfgÚcloudÚargsÚreturnc           	      óÆ  — d|vrt         j                  d| «       y t        j                  d¬«      5 }	 t	        j
                  |d   «      }|j                  t	        j                  |«      «       |j                  «        	 |j                  «       }|rdt        |«      ini }t        j                  «       5  t        j                  d|j                   g|d¬	«       d d d «       d d d «       y # t        $ r*}t	        j                  t         dt        |«      «       ‚ d }~ww xY w# 1 sw Y   ŒHxY w# t        $ r t	        j                  t         d
| «       ‚ w xY w# 1 sw Y   y xY w)Nr   z;Skipping module named %s, no 'bootcmd' key in configurationz.sh)ÚsuffixzFailed to shellify bootcmd: %sÚINSTANCE_IDz/bin/shF)Ú
update_envÚcapturezFailed to run bootcmd module %s)ÚLOGÚdebugr   ÚExtendedTemporaryFiler   ÚshellifyÚwriteÚencode_textÚflushÚ	ExceptionÚlogexcÚstrÚget_instance_idr   Úsuspend_crashr   r   )	r   r   r   r   ÚtmpfÚcontentÚeÚiidÚenvs	            ú=/usr/lib/python3/dist-packages/cloudinit/config/cc_bootcmd.pyÚhandler/   !   s1  € à˜ÑÜ	‰	ØIÈ4ô	
ð 	ä	×	)Ñ	)°Ô	7ð ¸4ð	Ü—m‘m C¨	¡NÓ3ˆGØJ‰J”t×'Ñ'¨Ó0Ô1ØJ‰JŒLð
		Ø×'Ñ'Ó)ˆCÙ/2=¤# c£(Ñ+¸ˆCÜ×-Ñ-Ó/ñ Ü—	‘	Ø §	¡	Ð*°sÀEõ÷÷ð øô
 ò 	ÜK‰KœÐ=¼sÀ1»vÔFØûð	ú÷ð ûô ò 	ÜK‰KœÐ>ÀÔEØð	ú÷!ð úsS   ²E´AC,Â5D.Â6%D"ÃD.Ã,	DÃ5%DÄDÄEÄ"D+	Ä'D.Ä.&EÅEÅE )Ú__doc__ÚloggingÚ	cloudinitr   r   r   r   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar	   Úcloudinit.settingsr
   Ú	getLoggerÚ__name__r   r   r   Ú__annotations__r&   Úlistr/   © ó    r.   ú<module>r=      s   ðò Aã ç <Ó <Ý !Ý #Ý .Ý )à€g×Ñ˜Ó!€à€	ð ØˆwØØ )˜{ñ	€€jó ðð ˜6ð ¨%ð °tð Àô r<   