diff options
author | наб <[email protected]> | 2022-04-04 13:16:31 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-04-20 13:28:54 -0700 |
commit | 9b80d9e6f92b07290585d1e91e6da1e9223badba (patch) | |
tree | 7ac28e6e9e4442a60da64291343f954f173151ba | |
parent | 469b8481aa8ee9448faf8093bf11d7f36dbe894d (diff) |
linux: module: uninstall legacy modules on (un)installation
This can be reverted once we're sure nobody's using them anymore
(post-3.0 release?)
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13274
-rw-r--r-- | module/Makefile.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/Makefile.in b/module/Makefile.in index 960cb7259..ea83ba127 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -76,8 +76,12 @@ clean-FreeBSD: clean: clean-@ac_system@ +.PHONY: modules_uninstall-Linux-legacy +modules_uninstall-Linux-legacy: + $(RM) -r $(addprefix $(KMODDIR)/$(INSTALL_MOD_DIR)/,spl/ avl/ icp/ lua/ nvpair/ unicode/ zcommon/ zfs/ zstd/) + KMODDIR := $(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@ -modules_install-Linux: +modules_install-Linux: modules_uninstall-Linux-legacy @# Install the kernel modules $(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \ INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \ @@ -106,7 +110,7 @@ modules_install-FreeBSD: modules_install: modules_install-@ac_system@ -modules_uninstall-Linux: +modules_uninstall-Linux: modules_uninstall-Linux-legacy @# Uninstall the kernel modules $(RM) $(addprefix $(KMODDIR)/$(INSTALL_MOD_DIR)/,zfs.ko spl.ko) |