Example #1
0
    def __init__(self):
        super().__init__()
        self._requests = []
        self._storage = None

        # Register a check for the storage checker.
        storage_checker.add_check(self.verify_requests)
Example #2
0
    def __init__(self):
        super().__init__()
        self._requests = []
        self._storage = None

        # Register a check for the storage checker.
        storage_checker.add_check(self.verify_requests)
Example #3
0
    # Set flag to prompt for missing ks data
    if not anaconda.interactive_mode:
        flags.ksprompt = False

    # Set minimal ram size to the storage checker.
    if anaconda.display_mode == constants.DisplayModes.GUI:
        min_ram = isys.MIN_GUI_RAM
    else:
        min_ram = isys.MIN_RAM

    from pyanaconda.storage.checker import storage_checker
    storage_checker.set_constraint(constants.STORAGE_MIN_RAM, min_ram)

    # Add a check for the snapshot requests.
    storage_checker.add_check(ksdata.snapshot.verify_requests)

    # Set the disk images.
    from pyanaconda.modules.common.constants.objects import DISK_SELECTION
    from pyanaconda.argument_parsing import name_path_pairs
    disk_select_proxy = STORAGE.get_proxy(DISK_SELECTION)
    disk_images = {}

    try:
        for (name, path) in name_path_pairs(opts.images):
            log.info("naming disk image '%s' '%s'", path, name)
            disk_images[name] = path
    except ValueError as e:
        stdout_log.error("error specifying image file: %s", e)
        util.ipmi_abort(scripts=ksdata.scripts)
        sys.exit(1)
Example #4
0
    # Set flag to prompt for missing ks data
    if not anaconda.interactive_mode:
        flags.ksprompt = False

    # Set minimal ram size to the storage checker.
    if anaconda.display_mode == constants.DisplayModes.GUI:
        min_ram = isys.MIN_GUI_RAM
    else:
        min_ram = isys.MIN_RAM

    from pyanaconda.storage.checker import storage_checker
    storage_checker.add_constraint(constants.STORAGE_MIN_RAM, min_ram)

    # Add a check for the snapshot requests.
    storage_checker.add_check(ksdata.snapshot.verify_requests)

    # Set the disk images.
    from pyanaconda.modules.common.constants.objects import DISK_SELECTION
    from pyanaconda.argument_parsing import name_path_pairs
    disk_select_proxy = STORAGE.get_proxy(DISK_SELECTION)
    disk_images = {}

    try:
        for (name, path) in name_path_pairs(opts.images):
            log.info("naming disk image '%s' '%s'", path, name)
            disk_images[name] = path
    except ValueError as e:
        stdout_log.error("error specifying image file: %s", e)
        util.ipmi_abort(scripts=ksdata.scripts)
        sys.exit(1)