From b44ac19723f88dcb3a8c8cb13235e028cc6c4816 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 18 Aug 2021 15:50:03 -0400 Subject: [PATCH] Provide some info on image progeny on pack --- imgutil/imgutil | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgutil/imgutil b/imgutil/imgutil index fd7763dc..8ce45b3b 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -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: