Bug 15273 - !live install using LiveDVD loses i18n settings (when switching from finish-install to draklive-install)
Summary: !live install using LiveDVD loses i18n settings (when switching from finish-i...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: 5beta3 5rc
Keywords:
: 15455 (view as bug list)
Depends on:
Blocks: 14069
  Show dependency treegraph
 
Reported: 2015-02-12 11:52 CET by Rémi Verschelde
Modified: 2015-05-09 18:25 CEST (History)
8 users (show)

See Also:
Source RPM: draklive-install
CVE:
Status comment:


Attachments

Description Rémi Verschelde 2015-02-12 11:52:46 CET
Testing GNOME LiveDVD x86_64 for Mageia 5 beta 3 round 4 (but it was already the same with KDE LiveDVD in round 3).

Booting the live DVD directly to the installer (i.e. not in live mode) shows localisation issues: after the language selection, the content is properly localised up to the advertising screen just before the partitioning step. Afterwards, everything is in English.

Note that this does not seem to affect draklive-install in Live mode, where everything stays localised as the live desktop.

After the installation, everything uses the proper locale.

Reproducible: 

Steps to Reproduce:
Comment 1 Rémi Verschelde 2015-02-12 12:19:35 CET
CC'ing Thierry and Thomas. I guess this one doesn't have to be a release blocker since it only affects direct install using Live ISOs, so it's only 5 or 6 screens that are in English instead of the chosen locale.

Would be nice to have a fix for mga5 though :)

CC: (none) => thierry.vignaud, tmb
Whiteboard: (none) => 5beta3

Comment 2 Rémi Verschelde 2015-02-12 13:20:37 CET
IINM the locale is lost when switching from stage1 to stage2.
Comment 3 Thomas Backlund 2015-02-13 12:21:59 CET
Well, live medias dont use stage2 at install time, it's run only during image creation time.

So its more of draklive-install issue
Comment 4 Rémi Verschelde 2015-03-11 11:08:18 CET
*** Bug 15455 has been marked as a duplicate of this bug. ***

CC: (none) => olchal

Comment 5 Marja Van Waes 2015-04-14 20:43:14 CEST
still valid for 5RC?

CC: (none) => marja11

Comment 6 Mårten Ström 2015-04-29 20:50:51 CEST
did instal direct with the rc kde live dvd 64 in virtual box.
i get the lokalasation setting every time i boot to the system

CC: (none) => mageiasv

claire robinson 2015-04-30 18:42:41 CEST

CC: (none) => eeeemail

Comment 7 claire robinson 2015-04-30 18:52:41 CEST
Speaking with MÃ¥rten on IRC.

He is being asked for l10n settings at finish-install and then every consequent boot. He chooses Swedish and everything is then OK for that session, until the next boot.

Setting as a release blocker

Priority: Normal => release_blocker
Blocks: (none) => 14069

Comment 8 claire robinson 2015-04-30 18:59:32 CEST
He says the installed user is still 'live'
Comment 9 claire robinson 2015-04-30 20:25:49 CEST
Performed a swedish installation from kde live dvd 64 in vbox with en_GB keyboard.

From grub screen onwards it is in english.

The other problems MÃ¥rten was having look to be due to having livecd/dvd ticked in vbox so the iso is not ejected and booting into live again.
Comment 10 Rémi Verschelde 2015-05-03 12:37:42 CEST
Still valid with the RC ISOs, same situation as comment 0.
Samuel Verschelde 2015-05-03 12:46:43 CEST

Whiteboard: 5beta3 => 5beta3 5rc

You-Cheng Hsieh 2015-05-07 10:13:49 CEST

CC: (none) => yochenhsieh

Comment 11 Thierry Vignaud 2015-05-09 17:46:36 CEST
My first guess would be that draklive-install's /etc/X11/xsetup.d/60draklive-install.xsetup could be patched so that it checks for /etc/sysconfig/i18n and parse it if locale env variables are not set (which is the case on live DVD when booting with "install" choice and setting language first to eg: french with F2 in syslinux.

However it already does that.

But the following command on LiveDVD shows that indeed there's no i18n env variable set for draklive-install

xargs --null -n1 echo </proc/$(pidof perl)/environ

The issue is that it source those files but those variables are *NOT* exported

adding the following should do it:
export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
       LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
       LC_IDENTIFICATION

Summary: Non-live install using LiveDVD loses i18n settings => !live install using LiveDVD loses i18n settings (when switching from finish-install to draklive-install)

Comment 12 Mageia Robot 2015-05-09 17:51:47 CEST
commit d25437d06655946b8ea854a226050c762a21b645
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Sat May 9 17:47:07 2015 +0200

    keep i18n settings on !live install (mga#15273)
    
    we do import the i18n variables but they never were exported...
---
 Commit Link:
   http://gitweb.mageia.org/software/draklive-install/commit/?id=d25437d06655946b8ea854a226050c762a21b645
Comment 13 Thierry Vignaud 2015-05-09 17:52:10 CEST
Should be fixed in next build

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 14 Thierry Vignaud 2015-05-09 18:04:27 CEST
Tested OK (by altering the above file prior to finish-install completion)
Comment 15 You-Cheng Hsieh 2015-05-09 18:13:33 CEST
Please take a note that we use /etc/locale.conf for i18n variables now... Not sure if it matters, just a reminder.
Comment 16 Thierry Vignaud 2015-05-09 18:25:40 CEST
We already try both...

Note You need to log in before you can comment on or make changes to this bug.