From: Corentin LABBE Date: Thu, 2 Jul 2020 07:22:58 +0000 (+0200) Subject: SPEC-3408: continue to fix packer build X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=d6a0dad7d3659f022fbe8c98731575dc07d913b3;p=ci-management.git SPEC-3408: continue to fix packer build Go is never installed, because the repository is invalid. This is due to VERSION_CODENAME bing empty. The source of /etc/os-release wasnt working. The solution is to use the POSIX way by using "." instead of the bashism source. Bug-AGL: SPEC-3408 Change-Id: I0d3939271cd57c381c4ec2ce21734e9702855645 Signed-off-by: Corentin LABBE --- diff --git a/packer/provision/agl_dependencies.sh b/packer/provision/agl_dependencies.sh index 5a8a0fcc..433ab7fd 100644 --- a/packer/provision/agl_dependencies.sh +++ b/packer/provision/agl_dependencies.sh @@ -133,7 +133,7 @@ sudo pip3 show jinja2 # install go for xds build -source /etc/os-release +. /etc/os-release wget -O - "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x52B59B1571A79DBC054901C0F6BC817356A3D45E" | sudo apt-key add - sudo bash -c "cat >> /etc/apt/sources.list.d/golang.list <