File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
cli/src/pcluster/resources/imagebuilder Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,21 @@ phases:
105
105
106
106
echo ${!OS}
107
107
108
+ - name : OperatingSystemVersion
109
+ action : ExecuteBash
110
+ inputs :
111
+ commands :
112
+ - |
113
+ set -v
114
+ FILE=/etc/os-release
115
+ if [ -e ${!FILE} ]; then
116
+ . ${!FILE}
117
+ echo "${!VERSION_ID}"
118
+ else
119
+ echo "The file '${!FILE}' does not exist. Failing build."
120
+ exit {{ FailExitCode }}
121
+ fi
122
+
108
123
# Get platform name
109
124
- name : PlatformName
110
125
action : ExecuteBash
@@ -176,9 +191,16 @@ phases:
176
191
set -v
177
192
OS='{{ build.OperatingSystemName.outputs.stdout }}'
178
193
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
194
+ VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}'
179
195
180
196
if [[ ${!PLATFORM} == RHEL ]]; then
197
+ if [[ ${!OS} == rhel9 ]]; then
198
+ echo ${!VERSION} > /etc/yum/vars/releasever
199
+ yum clean all
200
+ fi
201
+ yum -y update krb5-libs
181
202
yum -y groupinstall development && sudo yum -y install curl wget jq
203
+
182
204
183
205
if [[ ${!OS} =~ ^centos ]]; then
184
206
/bin/sed -r -i -e 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
You can’t perform that action at this time.
0 commit comments