HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/cloudinit/distros/__pycache__/raspberry_pi_os.cpython-312.pyc
�

쑛h���r�ddlZddlmZddlmZej
e�ZGd�dej�Zy)�N��subp)�debianc�D��eZdZdedededefd�Zd	d�Zdef�fd�Z�xZS)
�Distro�layout�model�variant�optionsc�4�tjdd|g�y)zKCurrently Raspberry Pi OS sys-mods only supports
        setting the layoutz+/usr/lib/raspberrypi-sys-mods/imager_custom�
set_keymapNr)�selfrr	r
rs     �C/usr/lib/python3/dist-packages/cloudinit/distros/raspberry_pi_os.pyr
zDistro.set_keymaps��	
�	�	�=���
�	
�c� �	tjddd|�g�y#tj$r]|jd�s4tj	d|�tjddd|�d�g�Yytjd�YywxYw)Nz/usr/bin/raspi-config�nonint�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_locales���	5��I�I�+��&��h�	�
���)�)�	5��?�?�8�,����8�&�A��	�	�/� �*�!�(�&�)�	���	�	�3�4�	5�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)�super�add_userrrrr)r�name�kwargs�result�e�	__class__s     �rr"zDistro.add_user4sp�����!�$�1�&�1����M�	��I�I��
(��.�

���	�)�)�	��I�I�0�!�4���	�s�3�A&�A!�!A&)N�LANG)	�__name__�
__module__�__qualname__�strr
r�boolr"�
__classcell__)r's@rrrs:���

��

�S�

�3�

��

�5�0�$��rr)	�logging�	cloudinitr�cloudinit.distrosr�	getLoggerr)rr�rr�<module>r4s4����$��g����!��A�V�]�]�Ar