subsequently be booted in a virtual machine or accessed with kpartx
"""
- def __init__(self, creatoropts=None, pkgmgr=None, compress_image=None):
+ def __init__(self, creatoropts=None, pkgmgr=None, compress_image=None, generate_bmap=None):
"""Initialize a ApplianceImageCreator instance.
This method takes the same arguments as ImageCreator.__init__()
self.appliance_version = None
self.appliance_release = None
self.compress_image = compress_image
+ self.bmap_needed = generate_bmap
#self.getsource = False
#self.listpkg = False
@cmdln.option("--compress-image", dest="compress_image", type='choice',
choices=("gz", "bz2"), default = None,
help="Compress all raw images before package")
+ @cmdln.option("--generate-bmap", action="store_true", default = None,
+ help="also generate the block map file")
def do_create(self, subcmd, opts, *args):
"""${cmd_name}: create raw image
(creatoropts['pkgmgr'],
','.join(backends.keys())))
- creator = raw.RawImageCreator(creatoropts, pkgmgr, opts.compress_image)
+ creator = raw.RawImageCreator(creatoropts, pkgmgr, opts.compress_image,
+ opts.generate_bmap)
if len(recording_pkgs) > 0:
creator._recording_pkgs = recording_pkgs