File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
cli/src/pcluster/resources/imagebuilder Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,21 @@ phases:
57
57
fi
58
58
59
59
echo ${!OS}
60
+ - name : OperatingSystemVersion
61
+ action : ExecuteBash
62
+ inputs :
63
+ commands :
64
+ - |
65
+ set -v
66
+ FILE=/etc/os-release
67
+ if [ -e ${!FILE} ]; then
68
+ . ${!FILE}
69
+ echo "${!VERSION_ID}"
70
+ else
71
+ echo "The file '${!FILE}' does not exist. Failing build."
72
+ exit {{ FailExitCode }}
73
+ fi
74
+
60
75
61
76
# Get platform name
62
77
- name : PlatformName
@@ -151,6 +166,11 @@ phases:
151
166
set -v
152
167
OS='{{ build.OperatingSystemName.outputs.stdout }}'
153
168
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
169
+ VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}'
170
+ if [[ ${!OS} == rhel9 ]]; then
171
+ echo ${!VERSION} > /etc/yum/vars/releasever
172
+ yum clean all
173
+ fi
154
174
155
175
if [[ ${!PLATFORM} == RHEL ]]; then
156
176
yum -y install jq
You can’t perform that action at this time.
0 commit comments