Skip to content

Commit

Permalink
Add manual kernel headers installation to unblock user-data execution (
Browse files Browse the repository at this point in the history
  • Loading branch information
seemethere authored Jul 1, 2024
1 parent 2aba8f1 commit 913d92b
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ USER_NAME=ec2-user
${install_config_runner}

retry sudo $PKG_MANAGER groupinstall -y 'Development Tools'
retry sudo $PKG_MANAGER install -y "kernel-devel-uname-r == $(uname -r)"
retry sudo $PKG_MANAGER install -y "kernel-devel == $(uname -r)" || true

# Needed since kernel 4.14.336-257.562 is not currently available in package managers
(
pushd /usr/src/kernels/
aws s3 cp s3://ossci-linux/4.14.336-257.562.amzn2.x86_64.tar.gz .
tar xvzf 4.14.336-257.562.amzn2.x86_64.tar.gz
)


echo Checking if nvidia install required ${nvidia_driver_install}
%{ if nvidia_driver_install ~}
Expand Down

0 comments on commit 913d92b

Please sign in to comment.