OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function :
oB]c @ s> d Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m
Z
d d l m Z e Z d g Z
i d d
6d d 6d
d 6e d d 6e
d 6e d g d 6e d 6d d 6i i d d 6i i d d 6i d d 6d 6i d d 6g d 6d 6e d 6e d 6d d 6g d 6d 6d! 6Z e e Z d" Z d S(# s: Bootcmd: run arbitrary commands early in the boot process.iN( t dedent( t get_schema_doct validate_cloudconfig_schema( t
PER_ALWAYS( t
temp_utils( t utilt allt
cc_bootcmdt idt Bootcmdt names0 Run arbitrary commands early in the boot processt titles This module runs arbitrary commands very early in the boot process,
only slightly after a boothook would run. This is very similar to a
boothook, but more user friendly. The environment variable
``INSTANCE_ID`` will be set to the current instance id for all run
commands. Commands can be specified either as lists or strings. For
invocation details, see ``runcmd``.
.. note::
bootcmd should only be used for things that could not be done later
in the boot process.
.. note::
when writing files, do not use /tmp dir as it races with
systemd-tmpfiles-clean LP: #1707222. Use /run/somedir instead.
t descriptiont distross bootcmd:
- echo 192.168.1.130 us.archive.ubuntu.com > /etc/hosts
- [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]
t examplest frequencyt objectt typet arrayt stringt itemst oneOft additionalItemst additionalPropertiesi t minItemst requiredt bootcmdt
propertiesc
C s? d | k r | j d | d St | t t j d d } y7 t j | d } | j t j | | j Wn/ t
k
r } t j | d t | n Xy` t
j j } | j } | r t | | d