use /etc/os-release for distribution information

Bug #1278016 reported by Mike Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Wishlist
Dustin Kirkland 

Bug Description

Please consider using /etc/os-release for distribution identification. The distro and release scripts defer to /etc/issue before calling lsb_release for performance reasons. However, /etc/issue is frequently modified to display corporate banners, legal warnings, or other machine or site-specific information.

The /etc/os-release file contains the same information as lsb_release but in a simple key=value flat file. This can be tested for existence before /etc/issue and read for the same bits that come from /etc/issue and /etc/debian_version.

This file has been present on Ubuntu since precise-updates, on Debian since wheezy, on RHEL 7 beta, and probably all current versions of Fedora.

I have no tested patch adding this support yet, but if you're interested I can look at it.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the suggestion and bug, Mike. This looks pretty straightforward. I'll get around to it.

Thanks!

Changed in byobu:
importance: Undecided → Wishlist
status: New → Triaged
assignee: nobody → Dustin Kirkland  (kirkland)
Changed in byobu:
status: Triaged → In Progress
Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu:
status: Fix Committed → 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.