Please include installation media build number in installation logs

Bug #364649 reported by Matt Zimmerman
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cdrom-detect (Ubuntu)
Fix Released
Wishlist
Colin Watson
installation-report (Ubuntu)
Fix Released
Wishlist
Evan
ubiquity (Ubuntu)
Fix Released
Wishlist
Evan

Bug Description

Binary package hint: ubiquity

It would be useful to be able to identify, for a given Ubuntu installation, which version of the installation media it was installed from. I'd like to be able to access this from apport hooks, so that it can be included in bug reports. This will help distinguish between, for example, a system which has been upgraded over many releases and one which is a fresh install.

ProblemType: Bug
Architecture: amd64
Dependencies:

DistroRelease: Ubuntu 9.04
Package: ubiquity None [modified: /var/lib/dpkg/info/ubiquity.list]
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: ubiquity
Uname: Linux 2.6.28-11-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package

Matt Zimmerman (mdz)
Changed in installation-report (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Changed in ubiquity (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Marc Tardif (cr3) wrote :

For desktop installations, which are probably the most common, I have found the following code useful to extract the disk information from the casper.log:

        # Found label 'Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)'
        distributor_regex = r"(?P<distributor>[\w\-]+)"
        release_regex = r"(?P<release>[\d\.]+)"
        codename_regex = r"(?P<codename>[^_]+)"
        official_regex = r"(?P<official>[\w ]+)"
        architecture_regex = r"(?P<architecture>[\w\+]+)"
        type_regex = r"(?P<type>Binary-\d+)"
        date_regex = r"(?P<date>[^\)]+)"

        info_regex = r"%s %s _%s_ - %s %s (%s )?\(%s\)" % (distributor_regex,
            release_regex, codename_regex, official_regex, architecture_regex,
            type_regex, date_regex)
        line_regex = r"Found label '%s'" % info_regex
        line_pattern = re.compile(line_regex)

        file = open("/var/log/installer/casper.log")
        for line in file.readlines():
            match = line_pattern.match(line)
            if match:
                print match.group("codename")

Colin Watson (cjwatson)
Changed in installation-report (Ubuntu):
assignee: nobody → Evan Dandrea (evand)
Changed in ubiquity (Ubuntu):
assignee: nobody → Evan Dandrea (evand)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package installation-report - 2.39ubuntu2

---------------
installation-report (2.39ubuntu2) karmic; urgency=low

  * Write /cdrom/.disk/info to /var/log/installer/media-info
    (LP: #364649).

 -- Evan Dandrea <email address hidden> Tue, 06 Oct 2009 15:30:09 +0100

Changed in installation-report (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 1.99.29

---------------
ubiquity (1.99.29) karmic; urgency=low

  [ Colin Watson ]
  * Use a separate PROGRESS REGION for each install plugin (LP: #438979).
  * GTK frontend:
    - When switching language, translate other top-level widgets (dialogs)
      and their children, as well as the main notebook pages (LP: #441622).
  * Install a dummy initctl similar to the dummy start-stop-daemon while
    doing anything that might install or remove packages in the target
    system, so that attempts to control Upstart jobs won't do anything.
  * Stop Upstart jobs when switching to runlevel 0 or 6, which I think fixes
    repeated respawns on shutdown (LP: #432140).
  * Save /var/log/installer/debug to the target system if it exists.
  * In the auto-resize bar, use the preferred partition size requested by
    partman-auto/partman-partitioning, rather than hardcoding the maximum
    size or making up our own (LP: #421407).
  * Update imported translations from gtk+2.0 2.18.1-1ubuntu1 (adds Asturian
    and Bengali).
  * Update translations from Launchpad.
  * Automatic update of included source packages: apt-setup 1:0.41ubuntu2,
    console-setup 1.34ubuntu4, flash-kernel 2.13ubuntu12, grub-installer
    1.43ubuntu5, partman-partitioning 72ubuntu2, partman-target 64ubuntu2.

  [ Evan Dandrea ]
  * Port fix for return_to_partitioning from the GTK+ frontend to the
    KDE frontend (LP: #439184).
  * Explicitly depend on reiserfsprogs so that we don't have to add it
    to every live seed (LP: #431976).
  * Write /cdrom/.disk/info to /var/log/installer/media-info
    (LP: #364649).

  [ Roman Shtylman ]
  * Limit width of side breadcumbs in kde for long translation text.
    Using elided text where needed (LP: #438918)

 -- Colin Watson <email address hidden> Tue, 06 Oct 2009 18:39:54 +0100

Changed in ubiquity (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Matt Zimmerman (mdz) wrote :

FYI, the corresponding changes to apport are in revno 1554 and should be included in the next apport upload following 1.9.2-0ubuntu1

------------------------------------------------------------
revno: 1554
committer: Matt Zimmerman <email address hidden>
branch nick: apport
timestamp: Tue 2009-10-06 15:58:45 +0100
message:
  general-hooks/ubuntu.py: Include in Ubuntu bug reports the version number
  of the installation media used to install the system, via
  /var/log/installer/media-info (cf. #364649)
------------------------------------------------------------

Matt Zimmerman (mdz)
Changed in installation-report (Ubuntu):
status: Fix Released → Triaged
status: Triaged → Fix Released
Changed in cdrom-detect (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in cdrom-detect (Ubuntu):
importance: Undecided → Wishlist
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cdrom-detect - 1.32ubuntu2

---------------
cdrom-detect (1.32ubuntu2) lucid; urgency=low

  * Copy /cdrom/.disk/info to /var/log/media-info, in order that we get
    /var/log/installer/media-info on the installed system; doing this in
    save-logs is too late because /cdrom is already unmounted by that point
    (LP: #364649).
 -- Colin Watson <email address hidden> Fri, 04 Dec 2009 17:27:09 +0000

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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