ksdata.displaymode.displayMode = mode_char_to_const[anaconda.displayMode] # if we're in text mode, the resulting system should be too # ...unless the kickstart specified otherwise if anaconda.displayMode != 'g' and not anaconda.ksdata.xconfig.startX: anaconda.ksdata.skipx.skipx = True # Set flag to prompt for missing ks data if anaconda.displayMode == 'c': flags.ksprompt = False from pyanaconda.anaconda_argparse import name_path_pairs image_count = 0 try: for (name, path) in name_path_pairs(opts.images): log.info("naming disk image '%s' '%s'", path, name) anaconda.storage.config.disk_images[name] = path image_count += 1 flags.imageInstall = True except ValueError as e: stdoutLog.error("error specifying image file: %s", e) iutil.ipmi_abort(scripts=ksdata.scripts) sys.exit(1) if image_count: anaconda.storage.setup_disk_images() from blivet.osinstall import storage_initialize from pyanaconda.packaging import payloadMgr from pyanaconda.timezone import time_initialize