if opts.lang: ksdata.lang.lang = opts.lang ksdata.lang.seen = True # Setup the locale environment if ksdata.lang.seen: locale_option = ksdata.lang.lang 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"], ksdata.lang, text_mode=anaconda.tui_mode) from pyanaconda.storage.osinstall import storage_initialize, enable_installer_mode enable_installer_mode() # Initialize the network now, in case the display needs it from pyanaconda.network import networkInitialize, wait_for_connecting_NM_thread, wait_for_connected_NM networkInitialize(ksdata) # 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, args=(ksdata,))) # initialize the screen access manager before launching the UI from pyanaconda import screen_access
if opts.lang: localization_proxy.SetLanguage(opts.lang) localization_proxy.SetLanguageKickstarted(True) # Setup the locale environment 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.osinstall import storage_initialize, enable_installer_mode enable_installer_mode() # Initialize the network now, in case the display needs it from pyanaconda.network import networkInitialize, wait_for_connecting_NM_thread, wait_for_connected_NM networkInitialize(ksdata) # 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