mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-13 19:27:51 +00:00
Provide some info on image progeny on pack
This commit is contained in:
parent
f855dda70f
commit
b44ac19723
@ -2,6 +2,7 @@
|
||||
import configparser
|
||||
import ctypes
|
||||
import ctypes.util
|
||||
import datetime
|
||||
from distutils.dir_util import copy_tree
|
||||
import glob
|
||||
import json
|
||||
@ -902,6 +903,8 @@ def pack_image(args):
|
||||
tmploc, '-comp', 'xz'])
|
||||
encrypt_image(tmploc, os.path.join(outdir, 'rootimg.sfs'), '{}/pending/rootimg.key'.format(privdir))
|
||||
os.remove(tmploc)
|
||||
with open(os.path.join(outdir, 'build-info'), 'w') as buildinfo:
|
||||
buildinfo.write('Packed from {} on {}\n'.format(args.scratchdir, datetime.datetime.now().strftime('%Y-%m-%dT%H:%M')))
|
||||
oshandler = fingerprint_host(args.scratchdir)
|
||||
tryupdate = False
|
||||
if oshandler:
|
||||
|
Loading…
x
Reference in New Issue
Block a user