use /etc/os-release for distribution information
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_
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.
Changed in byobu: | |
status: | Triaged → In Progress |
Changed in byobu: | |
status: | In Progress → Fix Committed |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Thanks for the suggestion and bug, Mike. This looks pretty straightforward. I'll get around to it.
Thanks!