From: Alexandru Avadanii Date: Tue, 25 Feb 2020 17:48:15 +0000 (+0100) Subject: ta: iso: Workaround kernel missing read rights X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F2258%2F2;p=ci-management.git ta: iso: Workaround kernel missing read rights libguestfs requires read access to the current running kernel, as described in [1]. While at it, install missing rename dependency. [1] https://bugs.launchpad.net/fuel/+bug/1467579 Change-Id: Ic0c9095e35dd740d48ddf83add530456a5cae92d Signed-off-by: Alexandru Avadanii --- diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index 1f6bcb3..a0d578c 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -290,9 +290,10 @@ - shell: |2- #!/bin/bash -ex if apt --version 2>1 >/dev/null; then + sudo chmod +r /boot/vmlinuz* if ! docker --version 2>1 >/dev/null; then sudo apt update - sudo apt install -y apt-transport-https ca-certificates curl software-properties-common + sudo apt install -y apt-transport-https ca-certificates curl software-properties-common rename curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository -y "deb http://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt update