Example #1
0
        threadMgr.add(
            AnacondaThread(name=constants.THREAD_STORAGE,
                           target=reset_storage,
                           args=(anaconda.storage, )))

    from pyanaconda.modules.common.constants.services import TIMEZONE
    timezone_proxy = TIMEZONE.get_proxy()

    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
Example #2
0
    if not conf.target.is_directory:
        threadMgr.add(AnacondaThread(name=constants.THREAD_STORAGE, target=storage_initialize,
                                     args=(anaconda.storage, ksdata, anaconda.protected)))

    from pyanaconda.modules.common.constants.services import TIMEZONE
    timezone_proxy = TIMEZONE.get_proxy()

    if conf.system.can_initialize_system_clock:
        threadMgr.add(AnacondaThread(name=constants.THREAD_TIME_INIT,
                                     target=time_initialize,
                                     args=(timezone_proxy,
                                           anaconda.storage,
                                           anaconda.bootloader)))

    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