Add volume_id to /etc/iconograph
This commit is contained in:
@@ -225,9 +225,12 @@ class ImageBuilder(object):
|
|||||||
|
|
||||||
def _WriteVersion(self, chroot_path, timestamp):
|
def _WriteVersion(self, chroot_path, timestamp):
|
||||||
with open(os.path.join(chroot_path, 'etc', 'iconograph.json'), 'w') as fh:
|
with open(os.path.join(chroot_path, 'etc', 'iconograph.json'), 'w') as fh:
|
||||||
json.dump({
|
info = {
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
}, fh)
|
}
|
||||||
|
if FLAGS.volume_id:
|
||||||
|
info['volume_id'] = FLAGS.volume_id
|
||||||
|
json.dump(info, fh, sort_keys=True, indent=4)
|
||||||
|
|
||||||
def _RunModules(self, chroot_path):
|
def _RunModules(self, chroot_path):
|
||||||
for module in self._modules:
|
for module in self._modules:
|
||||||
|
|||||||
Reference in New Issue
Block a user