Skip to content

Commit 8bc25b8

Browse files
Remove unnecessary check on kernel version
kernel version can only be checked after reboot. Moreover, the code `BEFORE_KERNEL_VERSION='{{ build.PinKernelVersion.outputs.stdout }}'` is syntactically wrong because of a typo
1 parent def3078 commit 8bc25b8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cli/src/pcluster/resources/imagebuilder/parallelcluster.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ phases:
342342
set -v
343343
OS='{{ build.OperatingSystemName.outputs.stdout }}'
344344
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
345-
BEFORE_KERNEL_VERSION='{{ build.PinKernelVersion.output.stdout }}'
346345
# Remove kernel version lock
347346
if [[ ${!PLATFORM} == RHEL ]]; then
348347
yum versionlock delete kernel kernel-core kernel-modules
@@ -361,9 +360,6 @@ phases:
361360
else
362361
apt-mark unhold linux-aws* linux-base* linux-headers* linux-image*
363362
fi
364-
if [[ "$(uname -a)" != ${!BEFORE_KERNEL_VERSION} ]] ; then
365-
echo "Kernel was upgraded from ${!BEFORE_KERNEL_VERSION} to $(uname -a)"
366-
fi
367363
echo "Kernel version unlocked"
368364
369365
- name: KeepSSM

0 commit comments

Comments
 (0)