Automatic-ubiquity installation of Lucid desktop with preseed ignores/clobbers preseeded values when creating /etc/apt/sources.list

Bug #732221 reported by Daniel Manrique
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ubiquity

I realize these are "older" versions of the software, this problem doesn't seem to affect either Maverick or Natty, however I am reporting this as we are still conducting tests with Lucid and this issue gives us some problems when trying to install openssh-server, due to the incorrect sources.list.

Steps to reproduce:
1- Remaster a CD image with ubuntu-10.04.2-desktop-i386.iso, using the attached ubuntu.seed file instead of the one provided in the CD (the relevant part are all the d-i mirror/* settings, the rest is just for completeness).
2- Boot with the CD, press a key, move to "install ubuntu" and press F6
3- replace "only-ubiquity" with "automatic-ubiquity" and press enter install using the preseed file's data.

Expected result:
/etc/apt/sources.list pointing to our local mirror, and containing lines of the form:

deb http://10.153.104.60//rsync.releases.ubuntu.com/releases/lucid/ubuntu-10.04.2-server-i386 lucid main restricted

as per the preseed file's configuration:

d-i mirror/country string manual
d-i mirror/http/hostname string 10.153.104.60
d-i mirror/http/directory string //rsync.releases.ubuntu.com/releases/lucid/ubuntu-10.04.2-desktop-i386
d-i mirror/http/proxy string
d-i mirror/http/mirror string 10.153.104.60

Actual result:

mirror/http/mirror gets replaced with a mirror according to the country as specified by debian-installer/locale. For instance, if locale is es_ES, we get lines of the form:

deb http://es.archive.ubuntu.com//rsync.releases.ubuntu.com/releases/lucid/ubuntu-10.04.2-desktop-i386 lucid main restricted

I tested setting

d-i mirror/http/mirror string ch.archive.ubuntu.com

and it still gets overwritten with es.archive.ubuntu.com.

This does not happen with either the alternate or server editions, both using plain debian-installer; it only happens under Ubiquity.

I'm attaching the test preseed file, as well as ubiquity's debug file, obtained using debug-ubiquity on an actual test system.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ubiquity 2.2.25
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic i686
Architecture: i386
Date: Wed Mar 9 19:52:47 2011
LiveMediaBuild: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release i386 (20110211.1)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity

Related branches

Revision history for this message
Daniel Manrique (roadmr) wrote :
Revision history for this message
Daniel Manrique (roadmr) wrote :
Revision history for this message
Daniel Manrique (roadmr) wrote :
Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
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):
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.