Unquoted version name in /etc/os-release

Bug #1243137 reported by 987poiuytrewq on 2013-10-22
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released
High
elementary OS team
0.2-luna
Fix Released
High
Sergey "Shnatsel" Davidoff
0.3-freya
Fix Released
High
elementary OS team

Bug Description

When installing postgresql-common, a check is done for compatibility by looking at the contents of /etc/os-release. The content of which is (fresh Luna install):

NAME="elementary OS"
VERSION="0.2 Luna"
ID=elementary OS
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS Luna"
VERSION_ID="0.2"

The ID field has a space in it, without quotes. When the file is sourced ( . /etc/os-release), the OS is interpreted as a command, which doesn't exist and the installation of postgresql-common fails.

This can be fixed by quoting the ID field as below:

NAME="elementary OS"
VERSION="0.2 Luna"
ID="elementary OS"
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS Luna"
VERSION_ID="0.2"

Cody Garver (codygarver) on 2013-10-22
Changed in elementaryos:
milestone: none → isis-beta1
assignee: nobody → elementary OS team (elementary-os)
importance: Undecided → High
tags: added: lsb

I'd like to see this fixed in Luna actually, no need to delay till Isis.
I've pushed the fix to lp:~elementary-os/elementaryos/plymouth-theme-elementary-luna
Sorry for the lack of merge request, I've accidentally overwritten the branch! Can we get this released?

Cody Garver (codygarver) on 2013-11-07
tags: added: os-patch
information type: Public → Private
information type: Private → Public
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers