Archive locations are not picked up correctly according to the timezones for preseeded raring desktop installations

Bug #1098577 reported by Para Siva
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
Medium
Colin Watson
Raring
Fix Released
Medium
Colin Watson

Bug Description

de.archive.ubuntu.com is being set in the sources.list file for german language (de_DE.UTF-8) raring desktop installations using preseeds. (the preseed is attached). The sources.list file looks like the one that is attached when the timezone is set to Etc/UTC or US/Eastern and the locale is set to de_DE.UTF-8.

Manual installations appear to set the correct archives though. When selecting America/Montreal or London during manual installations with Deutsche language correctly set the respective archives.

Steps:
1. Do a preseed installation of raring desktop with the attached preseed file (default_de.cfg)
2. Inspect /etc/apt/sources.list and /etc/timezone and it could be noticed that they do not correspond to each other

(I used utah for installation, the how to is given in http://utah.readthedocs.org/en/latest/introduction.html#how-to-start-running-tests)
The steps are
1. use the attached preseed file and .run to execute the following command
2. sudo -i -u utah run_utah_tests.py -i /path/to/iso -p /path/to/preseed /path/to/.run
3. Check the sources.list after the intsallation

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: ubiquity (not installed)
ProcVersionSignature: Ubuntu 3.7.0-7.15-generic 3.7.0
Uname: Linux 3.7.0-7-generic x86_64
ApportVersion: 2.8-0ubuntu1
Architecture: amd64
Date: Fri Jan 11 13:49:21 2013
InstallCmdLine: automatic-ubiquity boot=casper keyboard-configuration/layoutcode=us noprompt
InstallationDate: Installed on 2013-01-09 (2 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130109)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Para Siva (psivaa) wrote :
Revision history for this message
Para Siva (psivaa) wrote :
affects: grub-installer (Ubuntu) → ubiquity (Ubuntu)
Revision history for this message
Para Siva (psivaa) wrote :
description: updated
tags: added: qa-manual-testing
Revision history for this message
Para Siva (psivaa) wrote :
Para Siva (psivaa)
tags: added: rls-r-incoming
Revision history for this message
Colin Watson (cjwatson) wrote :

UTC is a special case. It does not have any single country defined for it, so ubiquity's timezone plugin does not override debian-installer/country (which scripts/tzsetup transcribes into mirror/country).

In the case of US/Eastern, it's more complicated. I think there is indeed a ubiquity bug here, in that the timezone plugin only sets debian-installer/country in its ok_handler, which is called when the user explicitly asks to go to the next page; we need to do this somewhere else instead (or as well?) for the benefit of installations where the timezone step has been fully preseeded.

Is there any particular reason why you don't simply preseed 'd-i mirror/country string US', or whatever country is appropriate? You're going to have to do that anyway for the UTC case, so you might as well do it across the board, which would allow you to avoid this problem entirely.

Changed in ubiquity (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Colin Watson (cjwatson) wrote :

Ah, perhaps mirror/country won't work here due to a separate bug ...

Revision history for this message
Colin Watson (cjwatson) wrote :

That separate bug is bug 732221. I've just committed a fix for it.

tags: removed: rls-r-incoming
Revision history for this message
Para Siva (psivaa) wrote :

Thanks for the investigation.

There is no reason why the mirror/country option was not set in the preseed. I assumed that it was not necessary. I'll try with d-i mirror/country string US for the US/Eastern installation to see if that resolves my installation.

Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu Raring):
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu Raring):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 2.13.10

---------------
ubiquity (2.13.10) raring; urgency=low

  [ Colin Watson ]
  * Only force mirror/country to the value of debian-installer/country if it
    is empty or has not been preseeded (LP: #732221).
  * For automatic installs, set debian-installer/country to a country
    matching time/zone when starting up the timezone plugin, since its
    ok_handler will typically never be called (LP: #1098577).
  * Save a random seed to the installed system so that it has better entropy
    on first boot (LP: #1098299).
  * Update translations from Launchpad (LP: #1096923).
  * Refactor handling of automatic mode to make it easier to override checks
    for it in plugins.

  [ Iain Lane ]
  * Port the webcam support to GStreamer 1.0.

  [ Jonathan Riddell ]
  * Fix widget layout and logic (LP: #1066225)

  [ Dmitrijs Ledkovs ]
  * Automatic update of included source packages: partman-
    basicfilesystems 76ubuntu4, partman-efi 25ubuntu4, partman-
    partitioning 89ubuntu2, partman-target 81ubuntu1.
 -- Colin Watson <email address hidden> Wed, 06 Feb 2013 20:01:25 +0000

Changed in ubiquity (Ubuntu Raring):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.