Bugzilla – Bug 845695
lsb_release shows no usefull results
Last modified: 2013-10-14 23:51:59 UTC
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 lsb_release seems to not be able to parse comments in /etc/SuSE-release properly and therefore shows invalid results, because a deprecation comment was added this file. Reproducible: Always Steps to Reproduce: 1. run lsb_release -a on 13.1 Actual Results: $ lsb_release -a LSB Version: n/a Distributor ID: #/etc/SuSE-releaseisdeprecatedandwillberemovedinthefuture,use/etc/os-releaseinstead Description: # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead Release: n/a Codename: n/a Expected Results: $ lsb_release -a LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-ia32:core-3.2-ia32:core-4.0-ia32:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch Distributor ID: SUSE LINUX Description: openSUSE 13.1 (i586) Release: 13.1 Codename: Bottle
lsb-release expects the first line to be the Distribution description: Line 198: TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null) And if the distribution desc is invalid all other fields are not filled. So either the depration comment has to be removed or one has to change the lsb-release script to ignore comments.
Dup of bug 845262 *** This bug has been marked as a duplicate of bug 845262 ***