Skip to content

Commit

Permalink
Install kernel-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed May 15, 2023
1 parent b2ce491 commit 8ee0af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ sudo yum install -y \
# Remove any old kernel versions. `--count=1` here means "only leave 1 kernel version installed"
sudo package-cleanup --oldkernels --count=1 -y

sudo yum versionlock kernel-$(uname -r) kernel-headers-$(uname -r)
sudo yum versionlock kernel-$(uname -r) kernel-headers-$(uname -r) kernel-devel-$(uname -r)

# Remove the ec2-net-utils package, if it's installed. This package interferes with the route setup on the instance.
if yum list installed | grep ec2-net-utils; then sudo yum remove ec2-net-utils -y -q; fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
sudo amazon-linux-extras install -y "kernel-${KERNEL_VERSION}"
fi

sudo yum install -y kernel-headers
sudo yum install -y kernel-headers kernel-devel

# enable pressure stall information
sudo grubby \
Expand Down

0 comments on commit 8ee0af7

Please sign in to comment.