ta: iso: Workaround kernel missing read rights 58/2258/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 25 Feb 2020 17:48:15 +0000 (18:48 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 25 Feb 2020 20:20:53 +0000 (21:20 +0100)
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 <Alexandru.Avadanii@enea.com>
jjb/akraino-templates/akraino-ta-common-macros.yaml

index 1f6bcb3..a0d578c 100644 (file)
       - 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