[anaconda][rhel7-branch/master/f23-branch][PATCH] Use otps.display_mode during early startup (#1267140)

Brian C. Lane bcl at redhat.com
Tue Sep 29 15:15:06 UTC 2015


On Tue, Sep 29, 2015 at 04:09:30PM +0200, Martin Kolman wrote:
> The anaconda.displayMode variable is not valid during early startup.
> 
> Otherwise the installation language setup logic would always think
> anaconda runs in text mode, resulting in languages specified in kickstart
> that we can't display in TUI (such as Japanese) falling back to English
> not only in TUI but also in GUI, even though GUI can display them just
> fine.
> 
> Resolves: rhbz#1267140
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
>  anaconda | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/anaconda b/anaconda
> index 1bafc59..cb95b9e 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -1138,10 +1138,10 @@ if __name__ == "__main__":
>          locale_option = ksdata.lang.lang
>      else:
>          locale_option = None
> -    localization.setup_locale_environment(locale_option, anaconda.displayMode != "g")
> +    localization.setup_locale_environment(locale_option, opts.display_mode != "g")
>  
>      # Now that LANG is set, do something with it
> -    localization.setup_locale(os.environ["LANG"], ksdata.lang, anaconda.displayMode != "g")
> +    localization.setup_locale(os.environ["LANG"], ksdata.lang, opts.display_mode != "g")
>  
>      import blivet
>      blivet.enable_installer_mode()
> -- 
> 2.4.3

Ok, this looks obvious and low risk. Ack.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list