Bug#939733: lsb-release: lsb_release does not show point release on Debian 10.1

Jonathan Wiltshire jmw at tiger-computing.co.uk
Tue Sep 10 10:21:52 BST 2019


Control: reassign -1 base-files
Control: severity -1 serious
Control: found -1 10.3+deb10u1

Hi,

On 09/09/2019 13:54, Andy Smith wrote:
> Hello,
> 
> On Sun, Sep 08, 2019 at 05:08:12PM +0200, Thorsten Glaser wrote:
>> On Sun, 8 Sep 2019, Markku Leiniö wrote:
>>> On Buster, "lsb_release -d" does not show the point release:
>>>
>>> $ lsb_release -d
>>> Description:    Debian GNU/Linux 10 (buster)
>>
>> Isn’t that a feature?
>>
>> The x.y there was a remnant from Debian sarge times.
> 
> Up until squeeze I have seen it show x.y.z, then from wheezy to
> stretch I see only x.y, but it does seem new behaviour in buster to
> only show x.
> 
> $ ansible '*' -i inventories/testing -a 'lsb_release -d' | grep ^Descr | sort -u
> Description:    Debian GNU/Linux 10 (buster)
> Description:    Debian GNU/Linux 8.11 (jessie)
> Description:    Debian GNU/Linux 9.10 (stretch)

This stems from lsb_release switching to reading the cross-distro
standard file, /usr/lib/os-release:

| $ cat /etc/debian_version
| 10.1
| $ cat /usr/lib/os-release
| PRETTY_NAME="Debian GNU/Linux 10 (buster)"
| NAME="Debian GNU/Linux"
| VERSION_ID="10"
| VERSION="10 (buster)"

So arguably base-files should be updating that file with point release
information, just as /etc/debian_version is. The spec [1] does not rule
that out, and other distributions do so:

| $ cat /etc/os-release
| NAME="Red Hat Enterprise Linux Server"
| VERSION="7.7 (Maipo)"
| VERSION_ID="7.7"
| PRETTY_NAME="Red Hat Enterprise Linux"

Please consider doing this urgently in stable, and possible even as a
stable update - it's having knock-on effects for us in several places
already, and I'm sure there will be other users with similar stories.

Severity upgraded because it causes an unexpected behaviour change in
lsb_release, but feel free to adjust.

1: https://www.freedesktop.org/software/systemd/man/os-release.html

Thanks,

-- 
Jonathan Wiltshire

Red Hat Certified Engineer (#170-281-083)

Tiger Computing Ltd
ISO27001:2017 Certified

Tel: 01600 483 484
Web: http://www.tiger-computing.co.uk

Registered in England. Company number: 3389961
Registered address: Wyastone Business Park,
 Wyastone Leys, Monmouth, NP25 3SR

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20190910/1da7b7c1/attachment.sig>


More information about the Debian-init-diversity mailing list