Skip to content

Commit

Permalink
Remove version pinning from update_and_reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Dec 16, 2024
1 parent 0b2be8a commit a6804e3
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,6 @@ phases:
fi
echo ${!OS}
- name: OperatingSystemVersion
action: ExecuteBash
inputs:
commands:
- |
set -v
FILE=/etc/os-release
if [ -e ${!FILE} ]; then
. ${!FILE}
echo "${!VERSION_ID}"
else
echo "The file '${!FILE}' does not exist. Failing build."
exit {{ FailExitCode }}
fi
# Get platform name
- name: PlatformName
Expand Down Expand Up @@ -166,14 +151,6 @@ phases:
set -v
OS='{{ build.OperatingSystemName.outputs.stdout }}'
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}'
if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then
if [[ ! -f /etc/yum/vars/releasever ]]; then
echo "yes" > /opt/parallelcluster/pin_releasesever
echo ${!VERSION} > /etc/yum/vars/releasever
yum clean all
fi
fi
if [[ ${!PLATFORM} == RHEL ]]; then
yum -y install jq
Expand Down

0 comments on commit a6804e3

Please sign in to comment.