Add the option to pass a custom path for the multilib config files

The default is /usr/share/pungi/multilib/, pass --multilibconf to
override this.

This also adds multilib.init() so that an import of multilib doesn't
immediately setup the classes.

(cherry picked from commit 234524296fd53871aed64690cf6a7d5849ca154a)
This commit is contained in:
Brian C. Lane 2015-02-11 16:13:23 -08:00 committed by Dennis Gilmore
parent 13526d1c49
commit 320724ed98
4 changed files with 41 additions and 16 deletions

View file

@ -275,6 +275,9 @@ if __name__ == '__main__':
parser.add_option("-i", "--installpkgs", default=[],
action="append", metavar="STRING",
help="Package glob for lorax to install before runtime-install.tmpl runs. (may be listed multiple times)")
parser.add_option("--multilibconf", default=None, type="string",
action="callback", callback=set_config, callback_args=(config, ),
help="Path to multilib conf files. Default is /usr/share/pungi/multilib/")
parser.add_option("-c", "--config", dest="config",
help='Path to kickstart config file')