diff options
| author | Patrick Vacek <patrickvacek@gmail.com> | 2020-04-06 11:49:00 +0200 |
|---|---|---|
| committer | Patrick Vacek <patrickvacek@gmail.com> | 2020-04-06 13:56:50 +0200 |
| commit | 62fbb2b1ba053635f154e5a041eb4c797f501514 (patch) | |
| tree | b677da064978dd31f0e4563b26b038ccdce76ae0 /scripts/ci/docker/setup_kvm.sh | |
| parent | 177081df3a793ee0e028b33bd416cdff97eee471 (diff) | |
| download | meta-updater-62fbb2b1ba053635f154e5a041eb4c797f501514.tar.gz | |
Refactor CI scripts for dunfell support.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'scripts/ci/docker/setup_kvm.sh')
| -rwxr-xr-x | scripts/ci/docker/setup_kvm.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/ci/docker/setup_kvm.sh b/scripts/ci/docker/setup_kvm.sh deleted file mode 100755 index 1ffbbf5..0000000 --- a/scripts/ci/docker/setup_kvm.sh +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 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 | |||
| 9 | set -euo pipefail | ||
| 10 | |||
| 11 | kvm_gid=$(stat -c "%g" /dev/kvm) | ||
| 12 | groupmod -g "$kvm_gid" kvm | ||
| 13 | usermod -a -G kvm bitbake | ||
| 14 | ln -s /bin/true /usr/bin/kvm-ok | ||
