Skip to content

Commit e42c918

Browse files
committed
remove builtin kernel modules from kmod_init and kernel_modules during
processing Signed-off-by: Zen <[email protected]>
1 parent 3b73fab commit e42c918

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ugrd/kmod/kmod.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '2.16.0'
2+
__version__ = '2.16.1'
33

44
from pathlib import Path
55
from subprocess import run
@@ -290,6 +290,11 @@ def process_modules(self) -> None:
290290
_process_kmod_dependencies(self, kmod)
291291
continue
292292
except BuiltinModuleError:
293+
if kmod in self['kmod_init']:
294+
self.logger.debug("Removing built-in module from kmod_init: %s" % kmod)
295+
self['kmod_init'].remove(kmod)
296+
self.logger.debug("Removing built-in module from kernel_modules: %s" % kmod)
297+
self['kernel_modules'].remove(kmod)
293298
continue # Don't add built-in modules to the ignore list
294299
except IgnoredModuleError as e:
295300
self.logger.info(e)

0 commit comments

Comments
 (0)