-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·51 lines (43 loc) · 1.51 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
# This script must be run as the root user.
set -x
# Download and build the igb_uio driver, and load it into the kernel.
yum install -y "kernel-devel-$(uname -r)"
mkdir igb_uio
curl https://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e721c733cd24206399bebb8f0751b0387c4c1595.tar.gz | tar -xz -C igb_uio --strip-components 1
make -C igb_uio/linux/igb_uio
cp igb_uio/linux/igb_uio/igb_uio.ko "/lib/modules/$(uname -r)/kernel/drivers/uio"
depmod "$(uname -r)"
rm -rf igb_uio
# Download a much newer version of TuneD that available from the
# Amazon Linux 2 repositories. This fixes several issues with the old
# version available there.
yum install -y \
dbus \
dbus-python \
ethtool \
gawk \
polkit \
python-configobj \
python-decorator \
python-gobject \
python-linux-procfs \
python-perf \
python-pyudev \
python-schedutils \
tuna \
util-linux \
virt-what
mkdir tuned
curl -L https://github.com/redhat-performance/tuned/archive/refs/tags/v2.20.0.tar.gz | tar -xz -C tuned --strip-components 1
# N.B. The 'desktop-file-install' action is expected to fail. This doesn't
# affect the installation of the tuned service.
make -C tuned PYTHON=/usr/bin/python2 install
rm -rf tuned
# Set up the sysctls.
# These override values already in /etc/sysctl.conf
cat "$ASSETS_DIR/xrd-sysctl.conf" >> /etc/sysctl.conf
# Copy the files in the etc/ subfolder into /etc
cp -r "$ASSETS_DIR/etc/" /
# Copy the files in the usr/ subfolder into /usr
cp -r "$ASSETS_DIR/usr/" /