Preseeding doesn't work with oem-config

Bug #924018 reported by Tobin Davis on 2012-01-30
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Medium
Oliver Grawert

Bug Description

oem-config should be able to parse a preseed file just as Ubiquity and Debian-Installer does. Currently there is no way to automate smoke testing of preinstalled images (or to automate testing of oem-config for that matter). Using a preseed does appear to fill in some parameters (user), but oem-config still prompts for all settings. This greatly hampers the amount of testing that can be automated on arm platforms.

Related branches

Tobin Davis (gruemaster) wrote :

Attached is the preseed used for testing. If changes can be made to this to make automation work, that would also be beneficial.

Changed in oem-config (Ubuntu):
assignee: nobody → Oliver Grawert (ogra)
importance: Undecided → Medium
milestone: none → ubuntu-12.04-beta-1
Tobin Davis (gruemaster) on 2012-01-31
affects: oem-config (Ubuntu) → ubiquity (Ubuntu)
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/924018

tags: added: iso-testing
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Oliver Grawert (ogra) wrote :

could someone please attach a syslog from a failed attampt ?

Changed in ubiquity (Ubuntu):
status: Confirmed → Incomplete
milestone: ubuntu-12.04-beta-1 → ubuntu-12.04-beta-2
Tobin Davis (gruemaster) on 2012-02-27
Changed in ubiquity (Ubuntu):
status: Incomplete → Confirmed
Tobin Davis (gruemaster) wrote :

Here is the syslog from 2012025 precise-preinstalled-server-armhf+omap4.img.gz image with the above preseed dumped in mmcblk0p2 root directory. No indication of the preseed being read in the syslog, however the username info is being set (but still prompted).

Oliver Grawert (ogra) wrote :

thanks tobin !

hmm, yes, looks like jasper did its job properly, if the username is pre-filled.
i would assume the "seen" tag isnt set properly on the preseeded values

Oliver Grawert (ogra) wrote :

attached is a syslog of an oem-config run where --automatic was hardcoded in oem-config-wrapper to make sure it tries to exec teh automatic mode in any case... teh whole thing was run with debug enabled and killed after netcfg. it seems that even though debconf adds (seen: true) in teh log, it re-asks some of the questions regardless.

Oliver Grawert (ogra) wrote :
Colin Watson (cjwatson) wrote :

Just for the record, ubiquity doesn't parse preseed files itself. They're expected to be applied (typically by casper) before ubiquity starts. The same should hold true for oem-config.

Oliver Grawert (ogra) wrote :

the preseeding in the arm images is done by jasper-initramfs using stolen code from casper which was already verified to work fine.

just to document teh ongoing work on this bug, it was found that oem-config does not accept to be run in automatic mode, this was now added as a new kernel cmdline option called "automatic-oem-config" to the various startup scripts and wrappers in the chain.

additionally issues in ubiquity itself with the debconf frontend were identified which are being worked on atm.

Changed in ubiquity (Ubuntu):
status: Confirmed → In Progress
Oliver Grawert (ogra) wrote :

i am still being asked the users full name, login (intrestingly not the password) and the tasksel page shows up

Oliver Grawert (ogra) wrote :

oem-config.log from a fresh debug run

Oliver Grawert (ogra) wrote :
Oliver Grawert (ogra) wrote :

and one more ... this time teh install completely finished automatically, but asked me the language and country questions again

Oliver Grawert (ogra) wrote :

running with a fresh image with all hacks in place i get through automatically up to tasksel (i checked twice, the changes to ubi-tasks.py are in place)

Oliver Grawert (ogra) wrote :

preseeding will now work with ubiquity 2.9.32 if you replace boot.scr and preseed.cfg with the following attached files before the first boot.

Oliver Grawert (ogra) wrote :
Oliver Grawert (ogra) wrote :

note that tasksel preseeding does not work (is ignored) in automatic mode currently, to install packages an apt-get install call should go into late-command

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 2.9.32

---------------
ubiquity (2.9.32) precise; urgency=low

  [ Stéphane Graber ]
  * panel: Fix the gtk3 css code so that it actually applies and add
    another override for the .menuitem padding that was making the panel
    28px large instead of 24px. (LP: #960998)
  * Only allow for one orca instance at a time. (LP: #945133)
  * Fix crash in set_indicator_keymaps when reaching the fallback code
    of the keyboard layout guesser. Added a test for it. (LP: #961003)
  * Make sure all the widgets of the quit dialog are always visible.
    (LP: #960600)
  * Switch to a single install_size() function in misc called by ubi-prepare
    and by ubi-partman. Tweak the resize partition sizes to enforce the
    minimum partition size in resize mode too. (LP: #960628)
  * Change ubiquity's virtual terminal to calling 'busybox tail' instead of
    'tail' to workaround the inotify on overlayfs bug.
  * panel: Only show icons, not labels, fixing our current "corruption"
    problem where the keyboard layout gets associated with another entry.
    (LP: #960039)
  * panel: Add a list to enforce the indicator ordering. (LP: #960036)
  * Automatic update of included source packages: migration-assistant
    0.6.11.

  [ Colin Watson ]
  * Make sure to load translations for "USB" and "CD" on the language page
    (LP: #958249).
  * Sort existing images in the face selector by filename.
  * Force face selector icon view to a two-column layout, in lieu of better
    geometry management (LP: #961025).
  * Refactor ubiquity.misc.grub_default to make it testable, and add tests
    for it.
  * Make test_misc pass when run on its own. Apparently
    GdkX11.x11_get_default_xdisplay() segfaults if Gtk hasn't been imported
    (or possibly something finer-grained); so import Gtk from
    misc.set_indicator_keymaps even though we don't actually use it
    directly.

  [ Oliver Grawert ]
  * bin/oem-config-firstboot: do not reset debconf user data in automatic mode
  * ubiquity/plugins/ubi-tasks.py: run tasksel with --new-install option in
    automatic mode (this still doesnt make tasksel work, but at least skips
    the debconf question if tasksel isnt in the preseed file, to install
    packages late-command needs to be used atm.
  * bin/ubiquity: make debconf not re-show seen questions again in automatic mode
  * all the above fixes (LP: #924018), example boot.scr and preseed.cfg file are
    attached to the bug, thanks to colin for all the fixes and the hard work.

  [ Barry Warsaw ]
  * Do not offer to install the boot loader on device paths on which
    incompatible file systems will be installed (e.g. XFS).
    (LP: #959724)
 -- Stephane Graber <email address hidden> Wed, 21 Mar 2012 19:49:14 -0400

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

Other bug subscribers