13:0
      ˆl–Ým_J*j"Tâ€ÆÝ¸ÛêbÑ¿Æ0ÅÄ  "   ˆl–ß=¿J	µ2ÛR‚ œP-\lò˜´oÇƒmÆÅ     a
    '¡Dgš  ã                   @   s”   U d Z ddlZddlmZmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ e e¡ZeZdd	ged
gdœZeed< ee	eeddœdd„ZdS )z:Bootcmd: run arbitrary commands early in the boot process.é    N)ÚsubpÚ
temp_utilsÚutil)ÚCloud)ÚConfig)Ú
MetaSchema)Ú
PER_ALWAYSZ
cc_bootcmdÚallÚbootcmd)ÚidZdistrosÚ	frequencyZactivate_by_schema_keysÚmeta)ÚnameÚcfgÚcloudÚargsÚreturnc           	      C   s  d|vrt  d| ¡ d S tjdd��Î}z*t |d ¡}| t |¡¡ | ¡  W n8 t	yˆ } z t 
t dt|ƒ¡ ‚ W Y d }~n
d }~0 0 z6| ¡ }|r¤dt|ƒini }tjd|jg|dd	� W n" t	yâ   t 
t d
| ¡ ‚ Y n0 W d   ƒ n1 sø0    Y  d S )Nr
   z;Skipping module named %s, no 'bootcmd' key in configurationz.sh)ÚsuffixzFailed to shellify bootcmd: %sZINSTANCE_IDz/bin/shF)Z
update_envZcapturezFailed to run bootcmd module %s)ÚLOGÚdebugr   ZExtendedTemporaryFiler   ZshellifyÚwriteZencode_textÚflushÚ	ExceptionZlogexcÚstrZget_instance_idr   r   )	r   r   r   r   ZtmpfZcontentÚeZiidÚenv© r   ú?/usr/lib/python3.9/site-packages/cloudinit/config/cc_bootcmd.pyÚhandle!   s(    ÿr   )Ú__doc__ZloggingZ	cloudinitr   r   r   Zcloudinit.cloudr   Zcloudinit.configr   Zcloudinit.config.schemar   Zcloudinit.settingsr   Z	getLoggerÚ__name__r   r   r   Ú__annotations__r   Úlistr   r   r   r   r   Ú<module>
   s   
ü  A   ˆl–ßi~” TÔD¨ 	¥íÆŸ¸ÔÅ£ÈƒmÐ?_†I|¥�+a–Ým_J*j"Tâ€ÆÞ¸ )‹FÿÈ M    /* ltdl.h -- generic dlopen functions

   Copyright (C) 1998-2000, 2004-2005, 2007-2008, 2011-2015 Free
   Software Foundation, Inc.
   Written by Thomas Tanner, 1998

   NOTE: The canonical source of this file is maintained with the
   GNU Libtool package.  Report bugs to bug-libtool@gnu.org.

GNU Libltdl is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

As a special exception to the GNU Lesser General Public License,
if you distribute this file as part of a program or library that
is built using GNU Libtool, you may include this file under the
same distribution terms that you use for the rest of that program.

GNU Libltdl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with GNU Libltdl; see the file COPYING.LIB.  If not, a
copy can be downloaded from  http://www.gnu.org/licenses/lgpl.html,
or obtained by writing to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

/* Only include this header file once. */
#if !defined LTDL_H
#define LTDL_H 1

#include <libltdl/lt_system.h>
#include <libltdl/lt_error.h>
#include <libltdl/lt_dlloader.h>

LT_BEGIN_C_DECLS


/* LT_STRLEN can be used safely on NULL pointers.  */
#define LT_STRLEN(s)	(((s) && (s)[0]) ? strlen (s) : 0)


/* --- DYNAMIC MODULE LOADING API --- */


typedef	struct lt__handle *lt_dlhandle;	/* A loaded module.  */

/* Initialisation and finalisation functions for libltdl. */
LT_SCOPE int	    lt_dlinit		(void);
LT_SCOPE int	    lt_dlexit		(void);

/* Module search path manipulation.  */
LT_SCOPE int	    lt_dladdsearchdir	 (const char *search_dir);
LT_SCOPE int	    lt_dlinsertsearchdir (const char *before,
						  const char *search_dir);
LT_SCOPE int	    lt_dlsetsearchpath	 (const char *search_path);
LT_SCOPE const char *lt_dlgetsearchpath	 (void);
LT_SCOPE int	    lt_dlforeachfile	 (
			const char *search_path,
			int (*func) (const char *filename, void *data),
			void *data);

/* User mod