%PDF- %PDF-
Mini Shell

Mini Shell

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

�

��i���v�ddlZddlmZmZddlmZeje�ZGd�dej�Z	y)�N)�net�subp)�debianc�N��eZdZdedededef�fd�Zd
d�Zdef�fd�Zd	�Z�xZ	S)�Distro�layout�model�variant�optionsc���t�|�||||�tjgd��tjgd��|jdd�tjd�rtjgd��yy)N)�/usr/bin/raspi-config�nonint�update_labwc_keyboard)r
r�update_squeekboard�restartrzkeyboard-setup�udevadm)r�triggerz--subsystem-match=inputz--action=change)�super�
set_keymapr�manage_service�which)�selfrr	r
r�	__class__s     ��C/usr/lib/python3/dist-packages/cloudinit/distros/raspberry_pi_os.pyrzDistro.set_keymapso���
���6�5�'�7�;��	�	�
�	
�	
�	�	�
�	
�	
���I�'7�8��:�:�i� ��I�I��
�!�c�"�	tjddd|�g�y#tj$r^|jd�s4tj	d|�tjddd|�d�g�Yytjd|�YywxYw)Nr
r�do_change_localez.UTF-8zTrying to set locale %s.UTF-8zFailed to set locale %s)r�ProcessExecutionError�endswith�LOG�info�error)r�locale�out_fn�keynames    r�apply_localezDistro.apply_locale.s���	=��I�I�+��&��h�	�
���)�)�	=��?�?�8�,����8�&�A��	�	�/� �*�!�(�&�)�	���	�	�3�V�<�	=�s��AB�5B�
B�returnc����t�|�|fi|��}|s|S	tjgd�d|i��y#tj$r }tjd|�Yd}~yd}~wwxYw)z�
        Add a user to the system using standard GNU tools

        This should be overridden on distros where useradd is not desirable or
        not available.

        Returns False if user already exists, otherwise True.
        )z/usr/bin/rename-userz-fz-s�	SUDO_USER)�
update_envzFailed to setup user: %sNFT)r�add_userrrr r")r�name�kwargs�result�ers     �rr+zDistro.add_userFsp�����!�$�1�&�1����M�	��I�I��
(��.�

���	�)�)�	��I�I�0�!�4���	�s�3�A&�A!�!A&c���d}|jj|d�}tjd||�|st	j
�Stj
d�y)N�disable_fallback_netcfgTz%s value is: %sz}Skipping generation of fallback network config as per configuration. Rely on Raspberry Pi OS's default network configuration.)�_cfg�getr �debugr�generate_fallback_configr!)r�keyr1s   rr5zDistro.generate_fallback_configdsV��'��"&�)�)�-�-��T�":���	�	�#�S�*A�B�&��/�/�1�1����
%�	
�
r)N�LANG)
�__name__�
__module__�__qualname__�strrr&�boolr+r5�
__classcell__)rs@rrrs:������S��3����<=�0�$��<rr)
�logging�	cloudinitrr�cloudinit.distrosr�	getLoggerr8r r�rr�<module>rCs4����$��g����!��c�V�]�]�cr

Zerion Mini Shell 1.0