܍~c UdZddlZddlmZddlmZddlmZddlm Z ddl m Z m Z ddl mZdd lmZeZd Zd d d eegeggdZe ed<e eZdZdede dedededdf dZdS)z&Scripts Per Boot: Run per boot scriptsN)Logger)subp)Cloud)Config) MetaSchema get_meta_doc) ALL_DISTROS) PER_ALWAYSzAny scripts in the ``scripts/per-boot`` directory on the datasource will be run every time the system boots. Scripts will be run in alphabetical order. This module does not accept any config keys. cc_scripts_per_bootzScripts Per BootzRun per boot scripts)idnametitle descriptiondistros frequencyexamplesactivate_by_schema_keysmetazper-bootr cfgcloudlogargsreturnctj|dt} t j|dS#t$r|d|t|wxYw)Nscriptsz"Failed to run module %s (%s in %s)) ospathjoin get_cpath SCRIPT_SUBDIRrrunparts Exceptionwarning)r rrrr runparts_paths F/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_per_boot.pyhandler&,s GLL!2!2I}MMM  m$$$$$  0       s A)A9)__doc__rloggingr cloudinitrcloudinit.cloudrcloudinit.configrcloudinit.config.schemarrcloudinit.distrosr cloudinit.settingsr rMODULE_DESCRIPTIONr__annotations__r strlistr&r%r5sG-,, !!!!!!######<<<<<<<<))))))))))))    #%}!  j    ,t    #(/5=A r4