summaryrefslogtreecommitdiffstats
path: root/lava-slave-base/scripts/start.sh
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2019-07-02 11:14:07 +0200
committerCorentin LABBE <clabbe@baylibre.com>2019-08-26 14:36:50 +0200
commit63da4cb3d258222ff1b11052951c7e5d7ca8e02c (patch)
tree2c309e475a66d2a8126549d444d3ca23aee97931 /lava-slave-base/scripts/start.sh
parentc0be09b6ddfd855eeadb3628a481f9c0bb4e26b7 (diff)
Upgrade to 2019.07
This patch upgrade LAVA to 2019.07 via their official docker images. Along with the change of the baseimage from our lava-xx-base to official 2019.07, some minor changes are needed: - Activate the en_US.UTF-8 locale needed for postgresql - chown to lavaserver all copied device-types - Fix the start scripts for using the official entrypoints
Diffstat (limited to 'lava-slave-base/scripts/start.sh')
-rwxr-xr-xlava-slave-base/scripts/start.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/lava-slave-base/scripts/start.sh b/lava-slave-base/scripts/start.sh
deleted file mode 100755
index 21b6903..0000000
--- a/lava-slave-base/scripts/start.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-
-/setup.sh || exit $?
-
-# Set LAVA Master IP
-if [[ -n "$LAVA_MASTER" ]]; then
- sed -i -e "s/{LAVA_MASTER}/$LAVA_MASTER/g" /etc/lava-dispatcher/lava-slave
-fi
-
-service tftpd-hpa start || exit 4
-if [ -s /etc/ser2net.conf ];then
- service ser2net start || exit 7
-fi
-
-touch /var/run/conmux-registry
-/usr/sbin/conmux-registry 63000 /var/run/conmux-registry&
-sleep 2
-for item in $(ls /etc/conmux/*cf)
-do
- echo "Add $item"
- # On some OS, the rights/user from host are not duplicated on guest
- grep -o '/dev/[a-zA-Z0-9_-]*' $item | xargs chown uucp
- /usr/sbin/conmux $item &
-done
-
-HAVE_SCREEN=0
-while read screenboard
-do
- echo "Start screen for $screenboard"
- TERM=xterm screen -d -m -S $screenboard /dev/$screenboard 115200 -ixoff -ixon || exit 9
- HAVE_SCREEN=1
-done < /root/lava-screen.conf
-if [ $HAVE_SCREEN -eq 1 ];then
- sed -i 's,UsePAM.*yes,UsePAM no,' /etc/ssh/sshd_config || exit 10
- service ssh start || exit 11
-fi
-
-
-# start an http file server for boot/transfer_overlay support
-(cd /var/lib/lava/dispatcher; python -m SimpleHTTPServer 80) &
-
-# FIXME lava-slave does not run if old pid is present
-rm -f /var/run/lava-slave.pid
-service lava-slave start || exit 5
-
-sleep 3650d