Skip to content

Commit 9d0edaa

Browse files
fixed ec2 image builder updateos document due to insufficient arguments to yum (#6502)
Co-authored-by: Ryan Anderson <[email protected]>
1 parent 1360e74 commit 9d0edaa

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
@@ -230,7 +230,7 @@ phases:
230230
231231
if [[ ${!OS} == "rhel8" ]] || [[ ${!OS} == "rocky8" ]] || [[ ${!OS} == "rhel9" ]] || [[ ${!OS} == "rocky9" ]] || [[ ${!OS} == "alinux2023" ]] ; then
232232
# package-cleanup has changed in RHEL8 and it works differently https://access.redhat.com/solutions/1227
233-
yum remove $(yum repoquery --installonly --latest-limit=-2 -q)
233+
yum remove -y $(yum repoquery --installonly --latest-limit=-2 -q)
234234
else
235235
package-cleanup -y --oldkernels --count=1
236236
fi

0 commit comments

Comments
 (0)