summaryrefslogtreecommitdiffstats
path: root/validator/src/pxe_initrd/src/bin/update_pkgs.sh
diff options
context:
space:
mode:
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