summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorPhus Lu <phus.lu@citrix.com>2015-06-18 15:16:00 +0800
committerPhus Lu <phus.lu@citrix.com>2015-06-18 15:16:00 +0800
commit0250b30ffe5d33798b79ae75c01905c6cf575f68 (patch)
treec4d8687cb37a2cadee9999439b8937ae44231ffc /mk
parenta3406cd92935c53d638f755fdeaae38e14a16e11 (diff)
downloadvyos-xe-guest-utilities-0250b30ffe5d33798b79ae75c01905c6cf575f68.tar.gz
vyos-xe-guest-utilities-0250b30ffe5d33798b79ae75c01905c6cf575f68.zip
CA-173690: Guest Agent: /usr/sbin/xe-linux-distribution cannot works in latest boot2docker.
latest Boot2Docker lsb_relase output ``` Boot2Docker 1.6.2 (TCL 6.3); master : 68777f2 ``` /usr/sbin/xe-linux-distribution cannot handle "(TCL 6.3)" string This commit is to fix this issue.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/xe-linux-distribution4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/xe-linux-distribution b/mk/xe-linux-distribution
index 5013e4f..2d06c39 100755
--- a/mk/xe-linux-distribution
+++ b/mk/xe-linux-distribution
@@ -266,8 +266,8 @@ identify_lsb()
fi
eval $(echo $release | awk -F. -- '{ subindex = index($0,"."); \
- print "major=" $1 ; \
- print "minor=" substr($0,subindex+1) }')
+ print "major=\"" $1 "\""; \
+ print "minor=\"" substr($0,subindex+1) "\"" }')
if [ -z "${major}" -o -z "${distro}" ] ; then
return 1