diff --git a/remote-scripts/customKernelInstall.sh b/remote-scripts/customKernelInstall.sh index 323ca18..117157e 100644 --- a/remote-scripts/customKernelInstall.sh +++ b/remote-scripts/customKernelInstall.sh @@ -182,12 +182,13 @@ InstallKernel() LogMsg "Installing ${customKernel##*/}" rpm -ivh "${customKernel##*/}" >> $logFolder/build-customKernel.txt 2>&1 kernelInstallStatus=$? + rpm -e kernel-$(uname -r) else prefix="localfile:" LogMsg "Installing ${customKernel#$prefix}" rpm -ivh "${customKernel#$prefix}" >> $logFolder/build-customKernel.txt 2>&1 kernelInstallStatus=$? - + rpm -e kernel-$(uname -r) fi UpdateTestState $ICA_TESTCOMPLETED if [ $kernelInstallStatus -ne 0 ]; then