aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rwxr-xr-xlavalab-gen.py2
2 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index e74302a..1edd340 100644
--- a/README.md
+++ b/README.md
@@ -414,10 +414,14 @@ For restoring this backup, simply cp backup-20180704_1206/* output/local/master/
## Upgrading from a previous lava-docker
For upgrading between two LAVA version, the only method is:
- backup data by running ./backup.sh on the host running the master (See Backups / restore)
-- checkout the new lava-docker and your boards.yaml
+- checkout the new lava-docker and update your boards.yaml
+- Move the old output directory away
- run lavalab-gen.sh
- copy your backup data in output/yourhost/master/backup directory
-- build and run docker-compose
+- build via docker-compose build
+- Stop the old docker via docker-compose down
+- Run the new version via docker-compose up -d
+- Check everything is ok via docker-compose logs -f
## Security
Note that this container provides defaults which are unsecure. If you plan on deploying this in a production enviroment please consider the following items:
diff --git a/lavalab-gen.py b/lavalab-gen.py
index d37eb90..6b0b2a0 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -556,6 +556,8 @@ def main():
if use_nfs:
dockcomp["services"][worker_name]["volumes"].append("/var/lib/lava/dispatcher/tmp:/var/lib/lava/dispatcher/tmp")
fp = open("%s/scripts/extra_actions" % workerdir, "a")
+ # LAVA check if this package is installed when doing NFS jobs
+ # So we need to install it, even if it is not used
fp.write("apt-get -y install nfs-kernel-server\n")
fp.close()
os.chmod("%s/scripts/extra_actions" % workerdir, 0o755)