if conf.system.can_initialize_system_clock: threadMgr.add( AnacondaThread(name=constants.THREAD_TIME_INIT, target=time_initialize, args=(timezone_proxy, anaconda.storage))) if flags.rescue_mode: rescue.start_rescue_mode_ui(anaconda) else: startup_utils.clean_pstore() # only install interactive exception handler in interactive modes if ksdata.displaymode.displayMode != pykickstart_constants.DISPLAY_MODE_CMDLINE or flags.debug: from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # add our own additional signal handlers signal.signal(signal.SIGUSR1, lambda signum, frame: exception.test_exception_handling()) signal.signal(signal.SIGUSR2, lambda signum, frame: anaconda.dumpState()) atexit.register(exitHandler, ksdata.reboot, anaconda.storage) from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # add additional repositories from the cmdline to kickstart data anaconda.add_additional_repositories_to_ksdata() # Fallback to default for interactive or for a kickstart with no installation method. fallback = not (flags.automatedInstall and ksdata.method.method)
args=(ksdata.timezone, anaconda.storage, anaconda.bootloader))) if flags.rescue_mode: from pyanaconda.ui.tui.simpleline import App from pyanaconda.rescue import RescueMode app = App("Rescue Mode") spoke = RescueMode(app, anaconda.ksdata, anaconda.storage) app.schedule_screen(spoke) app.run() else: cleanPStore() # only install interactive exception handler in interactive modes if ksdata.displaymode.displayMode != DISPLAY_MODE_CMDLINE or flags.debug: from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # add our own additional signal handlers signal.signal(signal.SIGUSR1, lambda signum, frame: exception.test_exception_handling()) signal.signal(signal.SIGUSR2, lambda signum, frame: anaconda.dumpState()) atexit.register(exitHandler, ksdata.reboot, anaconda.storage) from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # Fallback to default for interactive or for a kickstart with no installation method. fallback = not (flags.automatedInstall and ksdata.method.method) payloadMgr.restartThread(anaconda.storage, ksdata, anaconda.payload, anaconda.instClass, fallback=fallback)