aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-12 14:53:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-12 14:53:15 +0200
commit6e306c77d3bd945dd48fd9746ac1b07610e85f36 (patch)
tree32272d5c89367cb7df7433a02d9716cf2dfa901a /bootstrap
parentb665dce0ea1a19c77ef522d3bfafb8210f9455b3 (diff)
Add support for KVM, monitoring bbot diagnostics
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index ca7cffe..cfbf59a 100755
--- a/bootstrap
+++ b/bootstrap
@@ -155,6 +155,8 @@ if [ "$stage" -eq "1" ]; then
pkgs+=",bzip2,xz-utils"
pkgs+=",less,nano"
+ pkgs+=",qemu-kvm,socat"
+
pkgs+=",g++,pkg-config"
sudo debootstrap \
@@ -293,6 +295,7 @@ set -x
#
addgroup --gid 2000 build
adduser --uid 2000 --gid 2000 --home /build --gecos "" --disabled-password build
+adduser build kvm
echo "build ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/build
chmod 0440 /etc/sudoers.d/build
@@ -415,6 +418,8 @@ EOF
subvol_snapshot -r "$root" "$root-5"
fi
+exit 0
+
# Test.
#
if [ ! -e /tmp/buildos-state ]; then