本文整理汇总了Python中pykickstart.base.KickstartCommand类的典型用法代码示例。如果您正苦于以下问题:Python KickstartCommand类的具体用法?Python KickstartCommand怎么用?Python KickstartCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KickstartCommand类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.repoList = kwargs.get("repoList", [])
self.exclusive_required_options = [("mirrorlist", "--mirrorlist"),
("baseurl", "--baseurl")]
示例2: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.biospart = kwargs.get("biospart", None)
self.partition = kwargs.get("partition", None)
self.dir = kwargs.get("dir", None)
self.op = self._getParser()
示例3: __init__
def __init__(self, writePriority=120, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.drives = kwargs.get("drives", [])
self.initAll = kwargs.get("initAll", False)
self.type = kwargs.get("type", None)
示例4: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.hsync = kwargs.get("hsync", "")
self.monitor = kwargs.get("monitor", "")
self.vsync = kwargs.get("vsync", "")
示例5: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.type = kwargs.get("type", "")
self.moduleName = kwargs.get("moduleName", "")
self.moduleOpts = kwargs.get("moduleOpts", "")
示例6: __init__
def __init__(self, writePriority=140, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.snapshotList = kwargs.get("snapshotList", [])
self.whenMap = { "post-install": SNAPSHOT_WHEN_POST_INSTALL,
"pre-install": SNAPSHOT_WHEN_PRE_INSTALL }
self.op = self._getParser()
示例7: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.enabled = kwargs.get("enabled", None)
self.ports = kwargs.get("ports", [])
self.trusts = kwargs.get("trusts", [])
示例8: __init__
def __init__(self, writePriority=0, *args, **kwargs): # pylint: disable=super-init-not-called
KickstartCommand.__init__(self, writePriority, *args, **kwargs) # pylint: disable=non-parent-init-called
self.op = self._getParser()
self._keyboard = kwargs.get("_keyboard", "")
self.vc_keymap = kwargs.get("vc_keymap", "")
self.x_layouts = kwargs.get("x_layouts", [])
self.switch_options = kwargs.get("switch_options", [])
示例9: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.device = kwargs.get("device", "")
self.emulthree = kwargs.get("emulthree", False)
self.mouse = kwargs.get("mouse", "")
示例10: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.enabled = kwargs.get("enabled", False)
self.password = kwargs.get("password", "")
self.connect = kwargs.get("connect", "")
示例11: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.op = self._getParser()
self.rescue = False
self.nomount = kwargs.get("nomount", False)
self.romount = kwargs.get("romount", False)
示例12: __init__
def __init__(self, *args, **kwargs):
KickstartCommand.__init__(self, *args, **kwargs)
self.op = self._getParser()
self.osname = kwargs.get('osname', None)
self.remote = kwargs.get("remote", self.osname)
self.url = kwargs.get('url', None)
self.ref = kwargs.get('ref', None)
self.nogpg = kwargs.get('nogpg', False)
示例13: __init__
def __init__(self, *args, **kwargs):
KickstartCommand.__init__(self, *args, **kwargs)
self.checksum = kwargs.get("checksum", "")
self.noverifyssl = kwargs.get("noverifyssl", None)
self.proxy = kwargs.get("proxy", None)
self.url = kwargs.get("url", None)
self.op = self._getParser()
示例14: __init__
def __init__(self, writePriority=0, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.bootprotoList = [BOOTPROTO_DHCP, BOOTPROTO_BOOTP,
BOOTPROTO_STATIC]
self.op = self._getParser()
self.network = kwargs.get("network", [])
示例15: __init__
def __init__(self, writePriority=80, *args, **kwargs):
KickstartCommand.__init__(self, writePriority, *args, **kwargs)
self.actionList = kwargs.get("actionList", [])
self.validActions = [NVDIMM_ACTION_RECONFIGURE, NVDIMM_ACTION_USE]
self.validModes = [NVDIMM_MODE_SECTOR]
self.op = self._getParser()