RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 833058 - /etc/lsb-release does not exist
Summary: /etc/lsb-release does not exist
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-lsb
Version: 6.2
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On:
Blocks: 881827
TreeView+ depends on / blocked
 
Reported: 2012-06-18 13:48 UTC by Dan Bryant
Modified: 2013-02-21 10:46 UTC (History)
1 user (show)

Fixed In Version: redhat-lsb-4.0-6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 10:46:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0448 0 normal SHIPPED_LIVE redhat-lsb bug fix and enhancement update 2013-02-20 20:47:47 UTC

Description Dan Bryant 2012-06-18 13:48:22 UTC
Description of problem:
/etc/lsb-release does not exist, even though (to quote the man page of lsb_release) "If the installation is LSB compliant, the "/etc/lsb-release" file should contain the LSB_VERSION field. The value of the field should be a colon separated list of supported module versions indicating the LSB specification modules to which the installation is compliant. If the installation is not compliant, the above field should not be present."

As this file does not exist we are led to believe RHEL6.2 is not LSB-compliant.

Version-Release number of selected component (if applicable):
redhat-lsb-4.0-3

How reproducible:
Every time.

Steps to Reproduce:
1. cat /etc/lsb-release 
2. lsb_release -a
  
Actual results:
/etc/lsb-release doesn't exist.
lsb_release -a displays the correct LSB information.

Expected results:
/etc/lsb-release at least contains "LSB_VERSION=core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch"

Additional info:
Correct information can be created: 
echo "LSB_VERSION=`lsb_release -v | awk '/Version/ {print substr($3,2)}'`" > /etc/lsb-release
Ideally all the information that is in the /etc/redhat-release file should be in the /etc/lsb-release file.

Comment 3 Ondrej Vasik 2012-11-22 09:23:44 UTC
Thanks for the suggestion, you are right, we should provide it. However - it is not completely easy - as you have to make sure there is always correct information in the /etc/lsb-release file when you install/uninstall e.g. redhat-lsb-graphics. However, doable, though more invasive than oneline.

It is not necessary to have all the information there - just LSB_VERSION is enough - other fields are optional and are in /etc/redhat-release.

Comment 8 errata-xmlrpc 2013-02-21 10:46:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0448.html


Note You need to log in before you can comment on or make changes to this bug.