# check memory, just the text mode for now: startup_utils.check_memory(anaconda, opts, display_mode=constants.DisplayModes.TUI) # Now that we've got command line/boot options, do some extra processing. startup_utils.setup_logging_from_options(opts) # assign the other anaconda variables from options anaconda.decorated = opts.decorated anaconda.proxy = opts.proxy anaconda.updateSrc = opts.updateSrc anaconda.methodstr = opts.method anaconda.stage2 = opts.stage2 flags.rescue_mode = opts.rescue if opts.liveinst: startup_utils.live_startup(anaconda, opts) elif "LIVECMD" in os.environ: log.warning("Running via liveinst, but not setting flags.livecdInstall - this is for testing only") # set flags flags.noverifyssl = opts.noverifyssl flags.armPlatform = opts.armPlatform flags.extlinux = opts.extlinux flags.nombr = opts.nombr flags.mpathFriendlyNames = opts.mpathfriendlynames flags.debug = opts.debug flags.askmethod = opts.askmethod flags.dmraid = opts.dmraid flags.mpath = opts.mpath flags.ibft = opts.ibft flags.selinux = opts.selinux
opts, display_mode=constants.DisplayModes.TUI) # Now that we've got command line/boot options, do some extra processing. startup_utils.setup_logging_from_options(opts) # set flags flags.rescue_mode = opts.rescue flags.debug = opts.debug flags.mpath = opts.mpath flags.eject = opts.eject flags.kexec = opts.kexec flags.singlelang = opts.singlelang if opts.liveinst: startup_utils.live_startup(anaconda) # Switch to tty1 on exception in case something goes wrong during X start. # This way if, for example, metacity doesn't start, we switch back to a # text console with a traceback instead of being left looking at a blank # screen. python-meh will replace this excepthook with its own handler # once it gets going. if conf.system.can_switch_tty: def _earlyExceptionHandler(ty, value, traceback): util.ipmi_report(constants.IPMI_FAILED) util.vtActivate(1) return sys.__excepthook__(ty, value, traceback) sys.excepthook = _earlyExceptionHandler
flags.noverifyssl = opts.noverifyssl flags.extlinux = opts.extlinux flags.blscfg = opts.blscfg flags.nombr = opts.nombr flags.debug = opts.debug flags.askmethod = opts.askmethod flags.mpath = opts.mpath flags.nonibftiscsiboot = opts.nonibftiscsiboot flags.selinux = opts.selinux flags.eject = opts.eject flags.kexec = opts.kexec flags.singlelang = opts.singlelang flags.leavebootorder = opts.leavebootorder if opts.liveinst: startup_utils.live_startup(anaconda) # Switch to tty1 on exception in case something goes wrong during X start. # This way if, for example, metacity doesn't start, we switch back to a # text console with a traceback instead of being left looking at a blank # screen. python-meh will replace this excepthook with its own handler # once it gets going. if conf.system.can_switch_tty: def _earlyExceptionHandler(ty, value, traceback): util.ipmi_report(constants.IPMI_FAILED) util.vtActivate(1) return sys.__excepthook__(ty, value, traceback) sys.excepthook = _earlyExceptionHandler if conf.system.can_audit: