Comment 9 for bug 1907873

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Per Bug #1910408...

A new option will be added to the Project page to allow the user to select whether or not to automatically update the OS release description.

The release description value will be a double quoted (") string containing the Volume ID and the project time-stamp (as implemented in Bug #1907873).

To ensure the release description can be parsed without error, all double quote characters inside the release description will be removed and will not be escaped. Other special characters will not be explicitly handled but should be acceptable, since the entire string will be enclosed in matching double quotes.

The option to update the OS release description will be enabled by default in Cubic.
The user may disable this option on a per-project basis.
Changing the project's Volume ID on the Project page will re-enable this option.

The following values will be updated when this option is enabled:
1. DISTRIB_DESCRIPTION in /etc/lsb-release
2. PRETTY_NAME in /etc/os-release (if not a link to /usr/lib/os-release)
3. PRETTY_NAME in /usr/lib/os-release

These files will be updated upon entry to the Terminal page from the Project page or the Extract page. As a result, the user can execute `lsb_release --all` or `lab_release -d` on the Terminal page to view the release description while customizing the OS.

To prevent package updates from overwriting the release description, the above files will also be updated upon leaving the Terminal page to navigate to the Prepare page. As a consequence, manual updates will be overwritten whenever this option is enabled.