Skip to content

Commit f579ec0

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 699cb16 commit f579ec0

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
@@ -277,7 +277,7 @@ phases:
277277
yum install -y ./${!PACKAGE}.rpm
278278
fi
279279
else
280-
yum -y install kernel-devel
280+
yum -y install kernel-devel-$(uname -r)
281281
fi
282282
283283
elif [[ ${!PLATFORM} == DEBIAN ]]; then

0 commit comments

Comments
 (0)