Bug 42483

Summary: Initialize updater/identify from ISO image metadata
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: GeneralAssignee: Janek Walkenhorst <walkenhorst>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: enhancement    
Priority: P5 CC: hahn
Version: UCS 4.1   
Target Milestone: UCS 4.1-3-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Feature Request What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 42620    

Description Stefan Gohmann univentionstaff 2016-09-23 09:29:39 CEST
It should be possible to initialize the updater/identity variable through ISO image metadata. That allows us to identify images without re-building an image.

The command line tool exiv2 can change the metadata for example.
Comment 1 Philipp Hahn univentionstaff 2016-09-24 09:01:42 CEST
(In reply to Stefan Gohmann from comment #0)
> It should be possible to initialize the updater/identity variable through
> ISO image metadata. That allows us to identify images without re-building an
> image.

It's called "ISO-9660 Primary Volume Descriptor", described in <http://wiki.osdev.org/ISO_9660#The_Primary_Volume_Descriptor>. You can use 'isoinfo -d' to show part of the information, but for example the time stamps are missing:

| $ isoinfo -f -i /var/univention/buildsystem2/isotests/ucs_4.1-3-latest-amd64.iso -d
| System id: 
| Volume id: UCS 4.1-3 amd64 1
| Volume set id: 
| Publisher id: UNIVENTION GMBH
| Data preparer id: XORRISO-1.2.2 2012.04.02.133001, LIBISOBURN-1.2.2, LIBISOFS-1.2.2, LIBBURN-1.2.2
| Application id: UNIVENTION CORPORATE SERVER
| Copyright File id: 
| Abstract File id: 
| Bibliographic File id:

Basically you can use "dd" to poke the right bytes, as the structure is at a fixed position inside the ISO file.

> The command line tool exiv2 can change the metadata for example.

exiv2 is for JPEG images, NOT for ISO-9660 files!
Comment 2 Janek Walkenhorst univentionstaff 2016-10-12 11:17:20 CEST
DVD with test errata:
ucs_4.1-3-20161010-191822-dvd-amd64.iso

univention-system-setup (9.0.4-48)

Advisory: univention-system-setup.yaml
Comment 3 Erik Damrose univentionstaff 2016-10-13 11:30:57 CEST
OK: updater/identify is "UCS ($METADATA)" if iso metadata is set.
OK: does not get overwritten by updater appliance hook, if UCRv is set during installer
OK: DVD installation
OK: usb stick installation
OK: yaml

OK: Changes merged to ucs 4.2
Comment 4 Janek Walkenhorst univentionstaff 2016-10-13 11:44:14 CEST
<http://errata.software-univention.de/ucs/4.1/292.html>