Add quotation marks in lsb-release #1751

Closed
sgrunt91 opened this Issue Jan 6, 2017 · 0 comments

Projects

None yet

2 participants

@sgrunt91
sgrunt91 commented Jan 6, 2017

Issue Report

Since CoreOS update to 1248.2.0 (beta channel) , the /etc/lsb-release file as changed the variable DISTRIB_ID.
There some spaces characters in it now and no quotation marks around string.
So we can't source it to use variables.
It causes issues with some infrastructure monitoring scripts that I can't change easily, for example XenServer agent tools.

Bug

before 1248.2.0=> DISTRIB_ID=CoreOS
after => DISTRIB_ID=Container Linux by CoreOS

CoreOS Version

 ~ $ cat /etc/os-release
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1248.2.0
VERSION_ID=1248.2.0
BUILD_ID=2017-01-04-1132
PRETTY_NAME="Container Linux by CoreOS 1248.2.0 (Ladybug)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"

Environment

Virtual machine in XenServer 7

Expected Behavior

source /etc/lsb-release
Return nothing

Actual Behavior

$ source /etc/lsb-release
-bash: Linux: command not found

Reproduction Steps

  1. Execute source /etc/lsb-release
@crawford crawford self-assigned this Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment