PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: status.txt Size: 1.75 KB
//usr/share/doc/cloud-init/status.txt

cloud-init will keep a 'status' file up to date for other applications
wishing to use it to determine cloud-init status.

It will manage 2 files:
 status.json
 result.json

The files will be written to /var/lib/cloud/data/ .
A symlink will be created in /run/cloud-init. The link from /run is to ensure
that if the file exists, it is not stale for this boot.

status.json's format is:
   {
    'v1': {
     'init': {
       errors: []      # list of strings for each error that occurred
       start: float # time.time() that this stage started or None
       end: float # time.time() that this stage finished or None
     },
     'init-local': {
       'errors': [], 'start': <float>, 'end' <float> # (same as 'init' above)
     },
     'modules-config': {
       'errors': [], 'start': <float>, 'end' <float> # (same as 'init' above)
     },
     'modules-final': {
       'errors': [], 'start': <float>, 'end' <float> # (same as 'init' above)
     },
     'datasource': string describing datasource found or None
     'stage': string representing stage that is currently running
              ('init', 'init-local', 'modules-final', 'modules-config', None)
              if None, then no stage is running.  Reader must read the start/end
              of each of the above stages to determine the state.
   }

result.json's format is:
   {
    'v1': {
     'datasource': string describing the datasource found
     'errors': [] # list of errors reported
    }
   }

Thus, to determine if cloud-init is finished:
 fin = "/run/cloud-init/result.json"
 if os.path.exists(fin):
   ret = json.load(open(fin, "r"))
   if len(ret['v1']['errors']):
     print("Finished with errors:" + "\n".join(ret['v1']['errors']))
   else:
     print("Finished no errors")
 else:
   print("Not Finished")

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
examples DIR
- drwxr-xr-x 2026-01-24 23:01:14
Edit Download
1.75 KB lrw-r--r-- 2023-12-04 11:47:40
Edit Download
3.12 KB lrw-r--r-- 2023-12-04 11:47:40
Edit Download
1.84 KB lrw-r--r-- 2023-12-04 11:47:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI