diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 37829da8..f41ea351 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -138,7 +138,7 @@ class Lorax(BaseLoraxClass): def run(self, ybo, product, version, release, variant="", bugurl="", isfinal=False, workdir=None, outputdir=None, buildarch=None, volid=None, - domacboot=True, doupgrade=True, remove_temp=False): + domacboot=False, doupgrade=True, remove_temp=False): assert self._configured diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 2e7c43eb..0f9766b5 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -168,7 +168,7 @@ class RuntimeBuilder(object): class TreeBuilder(object): '''Builds the arch-specific boot images. inroot should be the installtree root (the newly-built runtime dir)''' - def __init__(self, product, arch, inroot, outroot, runtime, isolabel, domacboot=True, doupgrade=True, templatedir=None): + def __init__(self, product, arch, inroot, outroot, runtime, isolabel, domacboot=False, doupgrade=True, templatedir=None): # NOTE: if you pass an arg named "runtime" to a mako template it'll # clobber some mako internal variables - hence "runtime_img". self.vars = DataHolder(arch=arch, product=product, runtime_img=runtime, diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index c2996c90..d2727d61 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -772,9 +772,9 @@ if __name__ == '__main__': help="Directory to copy the resulting images and iso into. " "Defaults to the temporary working directory") - parser.add_argument( "--macboot", action="store_true", default=True, + parser.add_argument( "--macboot", action="store_true", dest="domacboot") - parser.add_argument( "--nomacboot", action="store_false", + parser.add_argument( "--nomacboot", action="store_false", default=False, dest="domacboot") # Group of arguments for appliance creation diff --git a/src/sbin/lorax b/src/sbin/lorax index b137f483..8a76ef97 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -124,9 +124,9 @@ def main(args): optional.add_option("--volid", default=None, help="volume id", metavar="STRING") optional.add_option("--macboot", help="", - action="store_true", default=True, dest="domacboot") + action="store_true", dest="domacboot") optional.add_option("--nomacboot", help="", - action="store_false", dest="domacboot") + action="store_false", default=False, dest="domacboot") optional.add_option("--noupgrade", help="", action="store_false", default=True, dest="doupgrade") optional.add_option("--logfile", default="./lorax.log",