Bug 50634 - os-release still identifies UCS as Debian
os-release still identifies UCS as Debian
Status: VERIFIED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 5.1
Assigned To: Philipp Hahn
Florian Best
:
: 54226 (view as bug list)
Depends on:
Blocks: 46120 51460
  Show dependency treegraph
 
Reported: 2019-12-12 15:08 CET by Philipp Hahn
Modified: 2024-03-08 10:57 CET (History)
7 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.011
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022110321000465
Bug group (optional):
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2019-12-12 15:08:39 CET
# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

This breaks all kind of (automation) software as they wrongly identify UCS systems as Debian. This is also visible on every boot where "$PRETTY_NAME" is displayed.

See <man:os-release(1)>. Basically it replaces base/univention-base-files/conffiles/etc/lsb-release.


base/univention-base-files/conffiles/etc/os-release:

PRETTY_NAME="Univention Corporate Server @%@version/version@%@"
NAME="Univention Corporate Server"
VERSION_ID="@%@version/version@%@"
VERSION="@%@version/version@%@ (@%@version/releasename@%@)"
VERSION_CODENAME="@%@version/releasename@%@"
ID="univention"
ID_LIKE="debian"
HOME_URL="https://www.univention.com/"
SUPPORT_URL=" https://www.univention.com/products/support/"
BUG_REPORT_URL="https://forge.univention.org/"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/a:univention:univention_corporate_server"
Comment 1 Philipp Hahn univentionstaff 2020-09-18 16:22:11 CEST
CODENAME should no longer be set since UCS-5 with Bug #51460.
Comment 2 Philipp Hahn univentionstaff 2021-03-17 11:00:53 CET
API-SPEC: <http://0pointer.de/blog/projects/os-release>
Comment 3 Philipp Hahn univentionstaff 2021-12-10 11:08:35 CET
*** Bug 54226 has been marked as a duplicate of this bug. ***
Comment 5 Philipp Hahn univentionstaff 2023-04-17 11:48:40 CEST
r19989 | Bug #50634: Adapt os-release for UCS
r19990 | Bug #50634: Adapt os-release for UCS
r19991 | Bug #50634: Adapt os-release for UCS

Package: base-files
Version: 11.1+deb11u6A~5.1.0.202304131444
Branch: ucs_5.1-0

Package: base-files
Version: 12.4A~5.2.0.202304131450
Branch: ucs_5.2-0

Package "lsb" has been reverted to the unpatched original Debian versions for UCS 5.1 and 5.2
Comment 6 Philipp Hahn univentionstaff 2023-04-18 10:49:18 CEST
r19999 | Bug #50634: Adapt os-release for UCS

Package: base-files
Version: 11.1+deb11u6A~5.1.0.202304181020
Branch: ucs_5.1-0

Package: base-files
Version: 12.4A~5.2.0.202304181025
Branch: ucs_5.2-0
Comment 7 Philipp Hahn univentionstaff 2023-04-18 10:50:18 CEST
[preview/5.2-0] 76030ba73f test(lsb): New distribution: Ucs
 test/ucs-test/tests/01_base/20lsb_id | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
Comment 8 Florian Best univentionstaff 2024-03-04 10:44:31 CET
OK: name changed from Univention to UCS:
# lsb_release -is 2>/dev/null 
Ucs

FYI: no changelog entry. If required, please reopen the bug.
Comment 9 Florian Best univentionstaff 2024-03-08 10:57:20 CET
ucs-test (10.0.10-62)
99369220d455 | test(lsb): New distribution: Ucs