summaryrefslogtreecommitdiffstats
path: root/pharos-validator/src/pxe_initrd/src/bin/update_pkgs.sh
blob: 2ac095fda56b251f67e1c5be4b7ff517669f0697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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