summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-28 12:31:33 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-30 17:19:11 +0100
commitb7ca73e4faafc23a554eb6eecc4b513449d41d66 (patch)
treebde8911daa9695d3f6bf8b4b1983b2bee187d31f /eclass
parentkernel-install.eclass: Call module cleanup in postinst (diff)
downloadgentoo-b7ca73e4faafc23a554eb6eecc4b513449d41d66.tar.gz
gentoo-b7ca73e4faafc23a554eb6eecc4b513449d41d66.tar.bz2
gentoo-b7ca73e4faafc23a554eb6eecc4b513449d41d66.zip
linux-mod-r1.eclass: Call module cleanup in postinst
Closes: https://github.com/gentoo/gentoo/pull/34513 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-mod-r1.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/linux-mod-r1.eclass b/eclass/linux-mod-r1.eclass
index 54df2406e5c7..67a4b64eb481 100644
--- a/eclass/linux-mod-r1.eclass
+++ b/eclass/linux-mod-r1.eclass
@@ -109,7 +109,7 @@ esac
if [[ ! ${_LINUX_MOD_R1_ECLASS} ]]; then
_LINUX_MOD_R1_ECLASS=1
-inherit edo linux-info multiprocessing toolchain-funcs
+inherit dist-kernel-utils edo linux-info multiprocessing toolchain-funcs
IUSE="dist-kernel modules-compress modules-sign +strip ${MODULES_OPTIONAL_IUSE}"
@@ -468,6 +468,7 @@ linux-mod-r1_pkg_postinst() {
debug-print-function ${FUNCNAME[0]} "${@}"
_modules_check_function ${#} 0 0 || return 0
+ dist-kernel_compressed_module_cleanup "${EROOT}/lib/modules/${KV_FULL}"
_modules_update_depmod
# post_process ensures modules were installed and that the eclass' USE