ó 'KXc@s®ddlmZddlmZddlmZddlmZddlmZddlm Z ddl m Z ej e ƒZdejfd „ƒYZd „Zd „Zd S( iÿÿÿÿ(tdistros(thelpers(tlog(tutil(tnet_util(t HostnameConf(t PER_INSTANCEtDistrocBsÂeZdZdZdZdZdZdgZd„Zdd„Z d„Z d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zdd„Zd„Zddd„Zd„ZRS(s/etc/locale.gens /etc/netctls /etc/timezones/etc/localtimes/etc/resolv.conft systemctlcCsBtjj||||ƒtj|ƒ|_d|_d|dRtexpand_package_listRR(RtcommandtargsR RQR#((sC/opt/freeware/lib/python2.7/site-packages/cloudinit/distros/arch.pyR"¯s       cCs&|jjd|jdgdtƒdS(Nsupdate-sourcess-ytfreq(RtrunR"R(R((sC/opt/freeware/lib/python2.7/site-packages/cloudinit/distros/arch.pyR!ÇsN(t__name__t __module__RR7RmRoR?tinit_cmdR R]RR$RIR=RVRYR\RcRgR^RdRsR"R!(((sC/opt/freeware/lib/python2.7/site-packages/cloudinit/distros/arch.pyR s*        cCsNd}t|tƒrJx.|jƒD] \}}|d||f}q"W|SdS(s/Returns a settings string formatted for netctl.Rs%s=%s N(Rvtdicttitems(RAtresulttktv((sC/opt/freeware/lib/python2.7/site-packages/cloudinit/distros/arch.pyR<Ìs cCs<d}t|tƒr8xtD]}|d|}qW|SdS(s4Returns a settings string formatted for resolv.conf.Rsnameserver %s N(RvRw(RAR‚tns((sC/opt/freeware/lib/python2.7/site-packages/cloudinit/distros/arch.pyR@Õs  N(t cloudinitRRRtloggingRtcloudinit.distrosRt"cloudinit.distros.parsers.hostnameRtcloudinit.settingsRt getLoggerR}R3RR<R@(((sC/opt/freeware/lib/python2.7/site-packages/cloudinit/distros/arch.pyts¬