403Webshell
Server IP : 46.62.235.243  /  Your IP : 216.73.216.254
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/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

Youez - 2016 - github.com/yon3zu
LinuXploit