File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
cli/src/pcluster/resources/imagebuilder Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,11 @@ phases:
195
195
196
196
if [[ ${!PLATFORM} == RHEL ]]; then
197
197
if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then
198
- echo ${!VERSION} > /etc/yum/vars/releasever
199
- yum clean all
198
+ if [[ ! -f /etc/yum/vars/releasever ]]; then
199
+ echo "yes" > /opt/parallelcluster/pin_releasesever
200
+ echo ${!VERSION} > /etc/yum/vars/releasever
201
+ yum clean all
202
+ fi
200
203
fi
201
204
yum -y update krb5-libs
202
205
yum -y groupinstall development && sudo yum -y install curl wget jq
Original file line number Diff line number Diff line change @@ -168,9 +168,12 @@ phases:
168
168
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
169
169
VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}'
170
170
if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then
171
+ if [[ ! -f /etc/yum/vars/releasever ]]; then
172
+ echo "yes" > /opt/parallelcluster/pin_releasesever
171
173
echo ${!VERSION} > /etc/yum/vars/releasever
172
174
yum clean all
173
175
fi
176
+ fi
174
177
175
178
if [[ ${!PLATFORM} == RHEL ]]; then
176
179
yum -y install jq
You can’t perform that action at this time.
0 commit comments