summaryrefslogtreecommitdiffstats
path: root/validator/src/pxe_initrd/src/bin/update_pkgs.sh
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 12:23:36 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 12:23:36 -0700
commit4b269fba0ca273dfa3acf44c9f5490f01e0c3d87 (patch)
tree909b5262b46306eb78327e535f2e14120e45116a /validator/src/pxe_initrd/src/bin/update_pkgs.sh
parentd46ab54583a6c20bfa5bea581f512474f488e788 (diff)
Rename pharos-dashboard and pharos-validator
As subdirectories of the pharos-tools repo, there is little need to keep the pharos prefix. Change-Id: Ica3d79411f409df638647300036c0664183c2725 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'validator/src/pxe_initrd/src/bin/update_pkgs.sh')
-rwxr-xr-xvalidator/src/pxe_initrd/src/bin/update_pkgs.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/validator/src/pxe_initrd/src/bin/update_pkgs.sh b/validator/src/pxe_initrd/src/bin/update_pkgs.sh
new file mode 100755
index 0000000..2ac095f
--- /dev/null
+++ b/validator/src/pxe_initrd/src/bin/update_pkgs.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+source /etc/profile
+
+# Update package list and upgrade all packages to the latest version
+apk update && apk upgrade
+
+# Install python3 and development tools to install a python module
+apk add build-base gcc make abuild binutils linux-headers musl-dev python3-dev python3 openssh
+pip3 install --upgrade pip netifaces watchdog
+
+# Remove all the build tools to make the initrd smaller
+apk del build-base gcc make abuild binutils linux-headers musl-dev python3-dev