summaryrefslogtreecommitdiffstats
path: root/scripts/ci/docker
diff options
context:
space:
mode:
authorlbonn <lbonn@users.noreply.github.com>2019-07-17 09:58:39 +0200
committerGitHub <noreply@github.com>2019-07-17 09:58:39 +0200
commitb11e4ab227bed2e368646cb348e41a4603ed55e0 (patch)
tree8f5430210f314fc3ef7aead29beecf99047b8894 /scripts/ci/docker
parentf68e1d59f0a0ed4341dad3b16d4979b1b63336d7 (diff)
parent5463396b1d47a122f5aef9a619244fd1777c0b56 (diff)
downloadmeta-updater-b11e4ab227bed2e368646cb348e41a4603ed55e0.tar.gz
Merge pull request #537 from advancedtelematic/ci/oe-selftest
Ci/oe selftest
Diffstat (limited to 'scripts/ci/docker')
-rwxr-xr-xscripts/ci/docker/setup_kvm.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/ci/docker/setup_kvm.sh b/scripts/ci/docker/setup_kvm.sh
new file mode 100755
index 0000000..1ffbbf5
--- /dev/null
+++ b/scripts/ci/docker/setup_kvm.sh
@@ -0,0 +1,14 @@
1#!/usr/bin/env bash
2
3# This script makes the gid of the 'kvm' group to match the group
4# owner of '/dev/kvm'
5#
6# These two are not guaranteed to match when a docker image starts
7# with access to '/dev/kvm' that comes from the host
8
9set -euo pipefail
10
11kvm_gid=$(stat -c "%g" /dev/kvm)
12groupmod -g "$kvm_gid" kvm
13usermod -a -G kvm bitbake
14ln -s /bin/true /usr/bin/kvm-ok