parser = argparse.ArgumentParser(
description=_("IPFire Installation Tool CLI"),
)
- parser.add_argument("--pakfire-conf", metavar=_("FILE"), type=argparse.FileType("r"),
+ parser.add_argument("--pakfire-config", metavar=_("FILE"), type=argparse.FileType("r"),
help=_("Pakfire Configuration file used for the installation process"))
parser.add_argument("--first-install", action="store_true",
help=_("Runs the \"first install\" setup process"))
"""
Bricklayer's base class
"""
- def __init__(self, arch, pakfire_conf=None, first_install=False, debug=False,
+ def __init__(self, arch, pakfire_config=None, first_install=False, debug=False,
unattended=False, disks=[], serial=False, ignore_kernel_cmdline=False):
self.arch = arch
- self.pakfire_conf = pakfire_conf
self.first_install = first_install
self.debug = debug
self.unattended = unattended
# Setup the Pakfire context
self.ctx = self.setup_context()
+ # Read Pakfire configuration
+ self.pakfire_config = pakfire_config.read()
+
# Create root directory
self.root = tempfile.mkdtemp(prefix="bricklayer-", suffix="-root")
ctx = self.ctx,
path = self.root,
arch = self.arch,
- config = self.pakfire_conf,
+ config = self.pakfire_config,
**kwargs,
)