Skip to content

Commit 770c25c

Browse files
Install kernel-devel using the same version of kernel on Amazon Linux
This logic has been applied to RHEL/Rocky. This commit makes Amazon Linux apply the same logic. Debian systems don't need this change, because they handle version properly
1 parent ac4a997 commit 770c25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ phases:
279279
yum install -y ./${!PACKAGE}.rpm
280280
fi
281281
else
282-
yum -y install kernel-devel
282+
yum -y install kernel-devel-$(uname -r)
283283
fi
284284
285285
elif [[ ${!PLATFORM} == DEBIAN ]]; then

0 commit comments

Comments
 (0)