SWDEV-323670 - RPM: Remove symlinks during upgrade as well
During RPM upgrade, lib/libOpenCL.so* files/symlinks from the previous
installed version are not removed.
This change will remove those symlinks as part of the RPM remove
or upgrade operation.
Signed-off-by: Saravanan Solaiyappan <saravanan.solaiyappan@amd.com>
Change-Id: Ia943407052ec24911756042a5f9839a605522443
[ROCm/clr commit: 56dde03fbb]
This commit is contained in:
committed by
Saravanan Solaiyappan
parent
4c1bb19860
commit
9ba8e04eda
@@ -1,4 +1,6 @@
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ $1 -le 1 ]; then
|
||||
# Below files will be removed during remove | upgrade operation
|
||||
|
||||
rm -f /etc/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
||||
rm -f /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
|
||||
rm -f @ROCM_PATH@/lib/libOpenCL.so
|
||||
|
||||
Reference in New Issue
Block a user