HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_bootcmd.cpython-310.pyc
o

x[h�
@s�UdZddlZddlmZmZmZmZddlmZddl	m
Z
ddlmZddl
mZe�e�ZeZdd	ged
gd�Zeed<d
ede
dededdf
dd�ZdS)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	Cs d|vrt�d|�dStjdd��t}zt�|d�}|�t�|��|��Wnt	y>}z
t�
tdt|���d}~wwz/|��}|rLdt|�ini}t
���tjd|jg|dd	�Wd�n1shwYWnt	y}t�
td
|��wWd�dS1s�wYdS)Nrz;Skipping module named %s, no 'bootcmd' key in configurationz.sh)�suffixzFailed to shellify bootcmd: %s�INSTANCE_IDz/bin/shF)�
update_env�capturezFailed to run bootcmd module %s)�LOG�debugr�ExtendedTemporaryFiler�shellify�write�encode_text�flush�	Exception�logexc�str�get_instance_idr�
suspend_crashrr)	rrrr�tmpf�content�e�iid�env�r,�=/usr/lib/python3/dist-packages/cloudinit/config/cc_bootcmd.py�handle!s<���
�����"�r.)�__doc__�logging�	cloudinitrrrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsr	�	getLogger�__name__rrr�__annotations__r$�listr.r,r,r,r-�<module>s	
�"