From cf147f075c86306c1fbf4a7b5f8296a1a96ab576 Mon Sep 17 00:00:00 2001 From: Marat Salimzianov Date: Mon, 28 Oct 2024 19:25:38 +0100 Subject: [PATCH] fixed ec2 image builder updateos document due to insufficient arguments to yum --- cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml b/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml index e5b88eec3d..24b29947c9 100644 --- a/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml +++ b/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml @@ -230,7 +230,7 @@ phases: if [[ ${!OS} == "rhel8" ]] || [[ ${!OS} == "rocky8" ]] || [[ ${!OS} == "rhel9" ]] || [[ ${!OS} == "rocky9" ]] || [[ ${!OS} == "alinux2023" ]] ; then # package-cleanup has changed in RHEL8 and it works differently https://access.redhat.com/solutions/1227 - yum remove $(yum repoquery --installonly --latest-limit=-2 -q) + yum remove -y $(yum repoquery --installonly --latest-limit=-2 -q) else package-cleanup -y --oldkernels --count=1 fi