locale_option = None localization.setup_locale_environment(locale_option, text_mode=anaconda.tui_mode) # Now that LANG is set, do something with it localization.setup_locale(os.environ["LANG"], localization_proxy, text_mode=anaconda.tui_mode) from pyanaconda.storage.initialization import enable_installer_mode, reset_storage enable_installer_mode() # Initialize the network now, in case the display needs it from pyanaconda.network import initialize_network, wait_for_connecting_NM_thread, wait_for_connected_NM initialize_network() # If required by user, wait for connection before starting the installation. if opts.waitfornet: log.info( "network: waiting for connectivity requested by inst.waitfornet=%d", opts.waitfornet) wait_for_connected_NM(timeout=opts.waitfornet) # In any case do some actions only after NM finishes its connecting. threadMgr.add( AnacondaThread(name=constants.THREAD_WAIT_FOR_CONNECTING_NM, target=wait_for_connecting_NM_thread)) # now start the interface display.setup_display(anaconda, opts) if anaconda.gui_startup_failed:
if localization_proxy.LanguageKickstarted: locale_option = localization_proxy.Language else: locale_option = None localization.setup_locale_environment(locale_option, text_mode=anaconda.tui_mode) # Now that LANG is set, do something with it localization.setup_locale(os.environ["LANG"], localization_proxy, text_mode=anaconda.tui_mode) from pyanaconda.storage.initialization import enable_installer_mode, reset_storage enable_installer_mode() # Initialize the network now, in case the display needs it from pyanaconda.network import initialize_network, wait_for_connecting_NM_thread, wait_for_connected_NM initialize_network() # If required by user, wait for connection before starting the installation. if opts.waitfornet: log.info("network: waiting for connectivity requested by inst.waitfornet=%d", opts.waitfornet) wait_for_connected_NM(timeout=opts.waitfornet) # In any case do some actions only after NM finishes its connecting. threadMgr.add(AnacondaThread(name=constants.THREAD_WAIT_FOR_CONNECTING_NM, target=wait_for_connecting_NM_thread)) # initialize the screen access manager before launching the UI from pyanaconda import screen_access screen_access.initSAM() # try to open any existing config file # (might be created by pre-anaconda helper tools, injected during image # generation, etc.)