Output directory
-A ARCH, --arch=ARCH
Specify repo architecture
- --release=RID Generate a release of RID with all neccessary
+ --release=RID Generate a release of RID with all necessary
files,when @BUILD_ID@ is contained in kickstart file,
it will be replaced by RID
--record-pkgs=RECORD_PKGS
class Creator(cmdln.Cmdln):
"""${name}: create an image
- usage:
+ Usage:
${name} SUBCOMMAND [OPTS] [ARGS..]
${command_list}
optparser.add_option('-k', '--cachedir', type='string', action='store', dest='cachedir', default=None, help='Cache directory to store the downloaded')
optparser.add_option('-o', '--outdir', type='string', action='store', dest='outdir', default=None, help='Output directory')
optparser.add_option('-A', '--arch', type='string', dest='arch', default=None, help='Specify repo architecture')
- optparser.add_option('', '--release', type='string', dest='release', default=None, metavar='RID', help='Generate a release of RID with all neccessary files,when @BUILD_ID@ is contained in kickstart file, it will be replaced by RID')
+ optparser.add_option('', '--release', type='string', dest='release', default=None, metavar='RID', help='Generate a release of RID with all necessary files, when @BUILD_ID@ is contained in kickstart file, it will be replaced by RID')
optparser.add_option("", "--record-pkgs", type="string", dest="record_pkgs", default=None,
help='Record the info of installed packages, multiple values can be specified which joined by ",", valid values: "name", "content", "license"')
optparser.add_option('', '--pkgmgr', type='string', dest='pkgmgr', default=None, help='Specify backend package manager')
This method applies the (e.g. keyboard or network) configuration
specified in the kickstart and executes the kickstart %post scripts.
- If neccessary, it also prepares the image to be bootable by e.g.
+ If necessary, it also prepares the image to be bootable by e.g.
creating an initrd and bootloader configuration.
"""
def get_optparser(self):
optparser = cmdln.CmdlnOptionParser(self, version=self.version)
optparser.add_option('-d', '--debug', action='store_true', dest='debug', help='print debug message')
- optparser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='verbose infomation')
+ optparser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='verbose information')
return optparser
def postoptparse(self):
def do_convert(self, subcmd, opts, *args):
"""${cmd_name}: convert image format
- usage:
+ Usage:
mic convert <imagefile> <destformat>
${cmd_option_list}
def do_chroot(self, subcmd, opts, *args):
"""${cmd_name}: chroot into an image
- usage:
+ Usage:
mic chroot <imagefile>
${cmd_option_list}