[Bug 1450025] [NEW] Unable to preseed language

Daniel Dehennin 1450025 at bugs.launchpad.net
Wed Apr 29 13:37:00 UTC 2015


Public bug reported:

Hello,

I'm trying to preseed a 14.04.2 installation with hands-off[0] and found
a bug in do_pressed[1].

When looking up known languages[2] a $lang variable is used bug comes
from nowhere (empty), I think it should be $ps_language.

I started an installation, pause it (thanks hands-off) and add some set
-x in some script to debug.

Here are the logs from localechooser do_preseed line 162[3] to 179[4]:

Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ fr ]
Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ fr ]
Apr 29 12:35:47 main-menu[1595]: (process:31954): + has_choice localechooser/languagelist
Apr 29 12:35:47 main-menu[1595]: (process:31954): + local RET template value
Apr 29 12:35:47 main-menu[1595]: (process:31954): + template=localechooser/languagelist
Apr 29 12:35:47 main-menu[1595]: (process:31954): + value=
Apr 29 12:35:47 main-menu[1595]: (process:31954): + [  ]
Apr 29 12:35:47 main-menu[1595]: (process:31954): + return 1
Apr 29 12:35:47 main-menu[1595]: (process:31954): + log Preseeded language ignored: unknown language code
Apr 29 12:35:47 main-menu[1595]: (process:31954): + logger -t localechooser info: Preseeded language ignored: unknown language code
Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ FR ]
Apr 29 12:35:47 main-menu[1595]: (process:31954): + country_preseeded=1
Apr 29 12:35:47 debconf: --> SETTITLE localechooser/title/language
Apr 29 12:35:47 debconf: <-- 0 OK
Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ fr_FR.UTF-8 ]
Apr 29 12:35:47 main-menu[1595]: (process:31954): + grep -q ^fr_FR.UTF-8  /usr/share/localechooser/SUPPORTED
Apr 29 12:35:47 main-menu[1595]: (process:31954): + db_fset debian-installer/locale seen true
Apr 29 12:35:47 main-menu[1595]: (process:31954): + _db_cmd FSET debian-installer/locale seen true
Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=  printf %s\n FSET debian-installer/locale seen true
Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=
Apr 29 12:35:47 main-menu[1595]: (process:31954):  read -r _db_internal_line
Apr 29 12:35:47 main-menu[1595]: (process:31954): + RET=true
Apr 29 12:35:47 main-menu[1595]: (process:31954): + return 0


This results in not using the preseeded language[5]:

Apr 29 12:35:47 main-menu[1595]: (process:31954): + db_fget localechooser/languagelist seen
Apr 29 12:35:47 main-menu[1595]: (process:31954): + _db_cmd FGET localechooser/languagelist seen
Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=  printf %s\n FGET local
Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=
Apr 29 12:35:47 main-menu[1595]: (process:31954):  read -r _db_internal_line
Apr 29 12:35:47 main-menu[1595]: (process:31954): + 
Apr 29 12:35:47 main-menu[1595]: (process:31954): RET=false
Apr 29 12:35:47 main-menu[1595]: (process:31954): + return 0
Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ false = true ]
Apr 29 12:35:47 main-menu[1595]: (process:31954): + PREVIOUS_LANGUAGE=


[0] http://hands.com/d-i/

[1] https://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/trusty/localechooser/trusty-
proposed/view/head:/localechooser#L148

[2] https://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/trusty/localechooser/trusty-
proposed/view/head:/localechooser#L164

[3] https://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/trusty/localechooser/trusty-
proposed/view/head:/localechooser#L162

[4] https://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/trusty/localechooser/trusty-
proposed/view/head:/localechooser#L179

[5] https://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/trusty/localechooser/trusty-
proposed/view/head:/localechooser#516

Regards.

** Affects: localechooser (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: trusty

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to localechooser in Ubuntu.
https://bugs.launchpad.net/bugs/1450025

Title:
  Unable to preseed language

Status in localechooser package in Ubuntu:
  New

Bug description:
  Hello,

  I'm trying to preseed a 14.04.2 installation with hands-off[0] and
  found a bug in do_pressed[1].

  When looking up known languages[2] a $lang variable is used bug comes
  from nowhere (empty), I think it should be $ps_language.

  I started an installation, pause it (thanks hands-off) and add some
  set -x in some script to debug.

  Here are the logs from localechooser do_preseed line 162[3] to 179[4]:

  Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ fr ]
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ fr ]
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + has_choice localechooser/languagelist
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + local RET template value
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + template=localechooser/languagelist
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + value=
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + [  ]
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + return 1
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + log Preseeded language ignored: unknown language code
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + logger -t localechooser info: Preseeded language ignored: unknown language code
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ FR ]
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + country_preseeded=1
  Apr 29 12:35:47 debconf: --> SETTITLE localechooser/title/language
  Apr 29 12:35:47 debconf: <-- 0 OK
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ fr_FR.UTF-8 ]
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + grep -q ^fr_FR.UTF-8  /usr/share/localechooser/SUPPORTED
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + db_fset debian-installer/locale seen true
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + _db_cmd FSET debian-installer/locale seen true
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=  printf %s\n FSET debian-installer/locale seen true
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=
  Apr 29 12:35:47 main-menu[1595]: (process:31954):  read -r _db_internal_line
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + RET=true
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + return 0

  
  This results in not using the preseeded language[5]:

  Apr 29 12:35:47 main-menu[1595]: (process:31954): + db_fget localechooser/languagelist seen
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + _db_cmd FGET localechooser/languagelist seen
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=  printf %s\n FGET local
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + IFS=
  Apr 29 12:35:47 main-menu[1595]: (process:31954):  read -r _db_internal_line
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + 
  Apr 29 12:35:47 main-menu[1595]: (process:31954): RET=false
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + return 0
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + [ false = true ]
  Apr 29 12:35:47 main-menu[1595]: (process:31954): + PREVIOUS_LANGUAGE=

  
  [0] http://hands.com/d-i/

  [1] https://bazaar.launchpad.net/~ubuntu-
  branches/ubuntu/trusty/localechooser/trusty-
  proposed/view/head:/localechooser#L148

  [2] https://bazaar.launchpad.net/~ubuntu-
  branches/ubuntu/trusty/localechooser/trusty-
  proposed/view/head:/localechooser#L164

  [3] https://bazaar.launchpad.net/~ubuntu-
  branches/ubuntu/trusty/localechooser/trusty-
  proposed/view/head:/localechooser#L162

  [4] https://bazaar.launchpad.net/~ubuntu-
  branches/ubuntu/trusty/localechooser/trusty-
  proposed/view/head:/localechooser#L179

  [5] https://bazaar.launchpad.net/~ubuntu-
  branches/ubuntu/trusty/localechooser/trusty-
  proposed/view/head:/localechooser#516

  Regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/localechooser/+bug/1450025/+subscriptions



More information about the foundations-bugs mailing list