New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quotation marks in lsb-release #1751

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment