HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_bootcmd.cpython-38.pyc
U

Ӈg�@s�UdZddlZddlmZmZmZmZddlmZddl	m
Z
ddlmZddl
mZe�e�ZeZdd	ged
gd�Zeed<ee
eedd
�dd�ZdS)z:Bootcmd: run arbitrary commands early in the boot process.�N)�signal_handler�subp�
temp_utils�util)�Cloud)�Config)�
MetaSchema)�
PER_ALWAYSZ
cc_bootcmd�all�bootcmd)�idZdistros�	frequencyZactivate_by_schema_keys�meta)�name�cfg�cloud�args�returnc	Csd|krt�d|�dStjdd���}z*t�|d�}|�t�|��|��Wn6t	k
r�}zt�
tdt|���W5d}~XYnXzJ|��}|r�dt|�ini}t
���tjd|jg|dd	�W5QRXWn$t	k
r�t�
td
|��YnXW5QRXdS)Nrz;Skipping module named %s, no 'bootcmd' key in configurationz.sh)�suffixzFailed to shellify bootcmd: %sZINSTANCE_IDz/bin/shF)Z
update_envZcapturezFailed to run bootcmd module %s)�LOG�debugrZExtendedTemporaryFilerZshellify�writeZencode_text�flush�	ExceptionZlogexc�strZget_instance_idrZ
suspend_crashrr)	rrrrZtmpfZcontent�eZiid�env�r�=/usr/lib/python3/dist-packages/cloudinit/config/cc_bootcmd.py�handle!s4�
�r)�__doc__ZloggingZ	cloudinitrrrrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarZcloudinit.settingsr	Z	getLogger�__name__rr
r�__annotations__r�listrrrrr�<module>
s
�