aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2019-11-21 09:38:08 +0100
committerCorentin LABBE <clabbe@baylibre.com>2019-11-21 09:38:08 +0100
commit29c9cc629f6f7147c4ef3693b1e33337922a6704 (patch)
tree91c62df3d911212f026c16ad0d94bf8387f99f54
parent04ce3e542a0d2d212a29621ae047096951dd0f51 (diff)
Install xnbd-server
The recent LAVA packages does not pull xnbd-server. So we need to install it when use_nbd is set.
-rwxr-xr-xlavalab-gen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 6b0b2a0..875d314 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -545,6 +545,10 @@ def main():
use_nbd = worker["use_nbd"]
if use_nbd:
dockcomp["services"][name]["ports"].append("61950-62000:61950-62000")
+ fp = open("%s/scripts/extra_actions" % workerdir, "a")
+ fp.write("apt-get -y install xnbd-server\n")
+ fp.close()
+ os.chmod("%s/scripts/extra_actions" % workerdir, 0o755)
use_overlay_server = True
if "use_overlay_server" in worker:
use_overlay_server = worker["use_overlay_server"]