/usr/lib/python3/dist-packages/cloudinit/distros/__pycache__
NameSizeModeActions
almalinux.cpython-310.pyc3590644editdlrm
alpine.cpython-310.pyc144450644editdlrm
amazon.cpython-310.pyc6250644editdlrm
aosc.cpython-310.pyc44290644editdlrm
arch.cpython-310.pyc43560644editdlrm
azurelinux.cpython-310.pyc20680644editdlrm
bsd.cpython-310.pyc62770644editdlrm
bsd_utils.cpython-310.pyc11590644editdlrm
centos.cpython-310.pyc3560644editdlrm
cloudlinux.cpython-310.pyc3600644editdlrm
cos.cpython-310.pyc3550644editdlrm
debian.cpython-310.pyc81690644editdlrm
dragonflybsd.cpython-310.pyc4070644editdlrm
eurolinux.cpython-310.pyc3590644editdlrm
fedora.cpython-310.pyc3560644editdlrm
freebsd.cpython-310.pyc71240644editdlrm
gentoo.cpython-310.pyc38710644editdlrm
mariner.cpython-310.pyc16760644editdlrm
miraclelinux.cpython-310.pyc3620644editdlrm
netbsd.cpython-310.pyc50160644editdlrm
networking.cpython-310.pyc123290644editdlrm
openbsd.cpython-310.pyc25540644editdlrm
OpenCloudOS.cpython-310.pyc5900644editdlrm
openeuler.cpython-310.pyc5860644editdlrm
openmandriva.cpython-310.pyc3640644editdlrm
opensuse-leap.cpython-310.pyc3670644editdlrm
opensuse-microos.cpython-310.pyc3700644editdlrm
opensuse-tumbleweed.cpython-310.pyc3730644editdlrm
opensuse.cpython-310.pyc66110644editdlrm
photon.cpython-310.pyc46700644editdlrm
raspberry_pi_os.cpython-310.pyc19580644editdlrm
rhel.cpython-310.pyc52270644editdlrm
rhel_util.cpython-310.pyc10110644editdlrm
rocky.cpython-310.pyc3550644editdlrm
sle-micro.cpython-310.pyc3630644editdlrm
sles.cpython-310.pyc3580644editdlrm
sle_hpc.cpython-310.pyc3610644editdlrm
suse.cpython-310.pyc3580644editdlrm
TencentOS.cpython-310.pyc5880644editdlrm
ubuntu.cpython-310.pyc22050644editdlrm
ug_util.cpython-310.pyc40530644editdlrm
virtuozzo.cpython-310.pyc3590644editdlrm
__init__.cpython-310.pyc450610644editdlrm
Edit: /usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/gentoo.cpython-310.pyc (3871B)
o th~@shddlZddlmZmZmZmZddlmZddlm Z ddl m Z m Z e eZGdddejZdS)N)distroshelperssubputil) PackageList) HostnameConf) PER_ALWAYS PER_INSTANCEc@seZdZdZdZddgZddZddd Zd efd d Z d dZ ddZ e ddZ dddZddZdddZddddZdS)Distroz/etc/locale.genz en_US.UTF-8z C.UTF8 UTF-8zen_US.UTF-8 UTF-8cCs>tj||||trd|_nd|_t||_d|_dS)Nz /etc/hostnamez/etc/conf.d/hostnamegentoo) rr __init__ uses_systemdhostname_conf_fnrRunners_runnerosfamily)selfnamecfgpathsr:/usr/lib/python3/dist-packages/cloudinit/distros/gentoo.pyr s   zDistro.__init__NcCsFtj|jd|jddtjdgddtjddd |jgddd S) zLocales need to be added to /etc/locale.gen and generated prior to selection. Default to en_US.UTF-8 for simplicity.  i)modez locale-genFcaptureeselectlocalesetN)r write_file locale_gen_fnjoinlocalesrdefault_locale)r_out_fnrrr apply_locale+s  zDistro.apply_localepkglistcCs||jd|ddS)N)pkgs)update_package_sourcespackage_command)rr'rrrinstall_packages9szDistro.install_packagescCsd}z||}Wnty%t|jdd}|rntdYdSYnw|s,td}t r6| |n| d|t |t |ddS)Ncreate_hostname_fileTz8create_hostname_file is False; hostname file not createdr(z hostname="%s"i) _read_hostname_confIOErrorrget_cfg_option_bool_cfgLOGinforrr set_hostnamerstr)rhostnamefilenameconfr-rrr_write_hostname=s*   zDistro._write_hostnamecCs||j}|j|fSN)_read_hostnamer)r sys_hostnamerrr_read_system_hostname^s  zDistro._read_system_hostnamecCstt|}||Sr:)rrload_text_fileparse)r7r8rrrr.bszDistro._read_hostname_confcCs8d}z ||}|j}Wn tyYnw|s|S|Sr:)r.r6r/)rr7defaultr6r8rrrr;hs   zDistro._read_hostnamecCstj|||ddS)N)tztz_file)rset_etc_timezone _find_tz_file)rrArrr set_timezonesszDistro.set_timezonecCsdg}|d|dkr|ddgn1|durg}|r't|tr'||n |r3t|tr3|||r:||td|}||tj|dddS) Nemergez--quietupgradez--updateworldz%s-%sFr)appendextend isinstancer5listrexpand_package_listr)rcommandargsr)cmdr'rrrr+vs      zDistro.package_commandF)forcecCs$|jjd|jdg|r tntddS)Nzupdate-sourcesz--sync)freq)rrunr+rr )rrQrrrr*s   zDistro.update_package_sourcesr:)NN)__name__ __module__ __qualname__r r#r"r r&rr,r9r= staticmethodr.r;rEr+r*rrrrr s !   r )logging cloudinitrrrrcloudinit.distrosr"cloudinit.distros.parsers.hostnamercloudinit.settingsrr getLoggerrTr2r rrrrs