diff options
author | Huanhuan Li <huanhuanx.li@intel.com> | 2014-03-21 17:51:49 +0800 |
---|---|---|
committer | Huanhuan Li <huanhuanx.li@intel.com> | 2014-03-25 14:59:34 +0800 |
commit | b28f09da34e91fa2d14fb44a1d184bfdf109274e (patch) | |
tree | b836f57465caee9318bc3440f57c86ccacc1744d /plugins | |
parent | f049ca83d5004bd41ccd301762de5c5ab9f14473 (diff) | |
download | mic-b28f09da34e91fa2d14fb44a1d184bfdf109274e.tar.gz mic-b28f09da34e91fa2d14fb44a1d184bfdf109274e.tar.bz2 mic-b28f09da34e91fa2d14fb44a1d184bfdf109274e.zip |
Generate manifest file
The manifest file stores important infomation such as image file name,
package format, compress format, partitions or disks. So when another program
want to parse image files, it can get the infomation more easily by reading
manifest file. There are two important kinds of format, see bellow:
loop:
{
"format": "loop",
"version": "0.24",
"loop": {
"image_files": [
"whole_rd_210-201403211800.tar.gz"
],
"pack": ".tar.gz",
"partitions": {
"/opt": "data",
"/opt/usr": "ums",
"/": "platform"
}
},
"created": "2014-03-21 18:02:07"
}
raw:
{
"raw": {
"image_files": [
"ivi-201403211803-sda.raw.bz2",
"ivi-201403211803-sdb.raw.bz2"
],
"disks": [
"sda",
"sdb"
],
"compress": "bz2",
"sda": {
"image": "ivi-201403211803-sda.raw.bz2",
"bmap": "ivi-201403211803-sda.bmap"
},
"sdb": {
"image": "ivi-201403211803-sdb.raw.bz2",
"bmap": "ivi-201403211803-sdb.bmap"
}
},
"format": "raw",
"version": "0.24",
"created": "2014-03-21 18:06:10"
}
Change-Id: Ie9682bad79337319d1c1e6534b3cd4db25271124
Fixes: #1583
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imager/fs_plugin.py | 1 | ||||
-rw-r--r-- | plugins/imager/livecd_plugin.py | 1 | ||||
-rw-r--r-- | plugins/imager/liveusb_plugin.py | 1 | ||||
-rw-r--r-- | plugins/imager/loop_plugin.py | 1 | ||||
-rw-r--r-- | plugins/imager/raw_plugin.py | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/plugins/imager/fs_plugin.py b/plugins/imager/fs_plugin.py index 3333157..9d4d79f 100644 --- a/plugins/imager/fs_plugin.py +++ b/plugins/imager/fs_plugin.py @@ -126,6 +126,7 @@ class FsPlugin(ImagerPlugin): creator.copy_kernel() creator.unmount() creator.package(creatoropts["outdir"]) + creator.create_manifest() if creatoropts['release'] is not None: creator.release_output(ksconf, creatoropts['outdir'], creatoropts['release']) creator.print_outimage_info() diff --git a/plugins/imager/livecd_plugin.py b/plugins/imager/livecd_plugin.py index 0ccba72..35ff512 100644 --- a/plugins/imager/livecd_plugin.py +++ b/plugins/imager/livecd_plugin.py @@ -117,6 +117,7 @@ class LiveCDPlugin(ImagerPlugin): creator.copy_kernel() creator.unmount() creator.package(creatoropts["outdir"]) + creator.create_manifest() if creatoropts['release'] is not None: creator.release_output(ksconf, creatoropts['outdir'], creatoropts['release']) creator.print_outimage_info() diff --git a/plugins/imager/liveusb_plugin.py b/plugins/imager/liveusb_plugin.py index 297a9b0..bc2b9aa 100644 --- a/plugins/imager/liveusb_plugin.py +++ b/plugins/imager/liveusb_plugin.py @@ -118,6 +118,7 @@ class LiveUSBPlugin(ImagerPlugin): creator.copy_kernel() creator.unmount() creator.package(creatoropts["outdir"]) + creator.create_manifest() if creatoropts['release'] is not None: creator.release_output(ksconf, creatoropts['outdir'], creatoropts['release']) creator.print_outimage_info() diff --git a/plugins/imager/loop_plugin.py b/plugins/imager/loop_plugin.py index 30dc3d9..3641ec9 100644 --- a/plugins/imager/loop_plugin.py +++ b/plugins/imager/loop_plugin.py @@ -129,6 +129,7 @@ class LoopPlugin(ImagerPlugin): creator.copy_kernel() creator.unmount() creator.package(creatoropts["outdir"]) + creator.create_manifest() if creatoropts['release'] is not None: creator.release_output(ksconf, diff --git a/plugins/imager/raw_plugin.py b/plugins/imager/raw_plugin.py index 25409a9..bb8c7f0 100644 --- a/plugins/imager/raw_plugin.py +++ b/plugins/imager/raw_plugin.py @@ -132,6 +132,7 @@ class RawPlugin(ImagerPlugin): creator.unmount() creator.generate_bmap() creator.package(creatoropts["outdir"]) + creator.create_manifest() if creatoropts['release'] is not None: creator.release_output(ksconf, creatoropts['outdir'], creatoropts['release']) creator.print_outimage_info() |