/etc/os-release should contain "codename" (like DISTRIB_CODENAME in lsb_release)

Bug #1520154 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
base-files (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

to use os-release instead of lsb_release (which adds a python dependency to the snappy image and is effectively duplication of functionality) /etc/os-release should contain "codename", since the value is needed for various container operations (lxd,docker) to obtain images

Zygmunt Krynicki (zyga)
Changed in snappy:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package base-files - 9.4ubuntu3

---------------
base-files (9.4ubuntu3) xenial; urgency=medium

  * etc/os-release:
    - add UBUNTU_CODENAME=xenial (LP: #1520154)
      (having distro specific fields is ok according to the spec)

 -- Michael Vogt <email address hidden> Fri, 27 Nov 2015 14:59:41 +0100

Changed in base-files (Ubuntu):
status: New → Fix Released
Revision history for this message
Leo Arias (elopio) wrote :

os-release now contains UBUNTU_CODENAME.

ubuntu@localhost:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04 (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

I'm marking this as fix released. Ogra, will this trigger the removal of lsb_release? Or what else should we do now here?

Changed in snappy:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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