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 <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13274
This commit is contained in:
parent
469b8481aa
commit
9b80d9e6f9
|
@ -76,8 +76,12 @@ clean-FreeBSD:
|
||||||
|
|
||||||
clean: clean-@ac_system@
|
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@
|
KMODDIR := $(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@
|
||||||
modules_install-Linux:
|
modules_install-Linux: modules_uninstall-Linux-legacy
|
||||||
@# Install the kernel modules
|
@# Install the kernel modules
|
||||||
$(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \
|
$(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \
|
||||||
INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
|
INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
|
||||||
|
@ -106,7 +110,7 @@ modules_install-FreeBSD:
|
||||||
|
|
||||||
modules_install: modules_install-@ac_system@
|
modules_install: modules_install-@ac_system@
|
||||||
|
|
||||||
modules_uninstall-Linux:
|
modules_uninstall-Linux: modules_uninstall-Linux-legacy
|
||||||
@# Uninstall the kernel modules
|
@# Uninstall the kernel modules
|
||||||
$(RM) $(addprefix $(KMODDIR)/$(INSTALL_MOD_DIR)/,zfs.ko spl.ko)
|
$(RM) $(addprefix $(KMODDIR)/$(INSTALL_MOD_DIR)/,zfs.ko spl.ko)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue