From 5dd069d3d6ae933954bf731e0b7e43ae7ca8f727 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 20 Aug 2021 03:36:16 +0000 Subject: [PATCH] scst: Do not affect weak updates during installation The code for removing weak updates did not fix the reported issue. Additionally, that code can remove weak updates that are not related to SCST. Hence remove the code again that removes weak updates. Reported-by: Tu, Rongqing git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9493 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/Makefile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scst/src/Makefile b/scst/src/Makefile index 486ec8abd..236d1d206 100644 --- a/scst/src/Makefile +++ b/scst/src/Makefile @@ -89,13 +89,6 @@ install: all false; fi -rm -f $(INSTALL_DIR)/scsi_tgt.ko KDIR=$(KDIR) ../../scripts/sign-modules - # Apparently on RHEL 8 and CentOS 8 the module installation can - # leave stale symlinks in /lib/modules/$(KVER)/weak-updates/. These - # symlinks may cause loading of SCST to fail, Remove these symlinks - # before installing SCST. - if [ -e /usr/sbin/weak-modules ]; then \ - /usr/sbin/weak-modules --remove-kernel; \ - fi $(MAKE) -C $(KDIR) M=$(shell pwd)/dev_handlers \ $(shell [ -n "$(PASS_CC_TO_MAKE)" ] && echo CC="$(CC)") \ INSTALL_MOD_DIR=extra/dev_handlers \