Skip to content

Commit 8ca58a0

Browse files
committed
raise excception for errors on required kernel modules
Signed-off-by: Zen <[email protected]>
1 parent e7b0ea4 commit 8ca58a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ugrd/kmod/kmod.py

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

44
from pathlib import Path
55
from subprocess import run
@@ -42,6 +42,8 @@ def _process_kernel_modules_multi(self, module: str) -> None:
4242
try:
4343
_get_kmod_info(self, module)
4444
except DependencyResolutionError:
45+
if module in self['kmod_init'] or module in self['_kmod_depend']:
46+
raise DependencyResolutionError("Failed to get modinfo for kernel required module: %s" % module)
4547
self.logger.error("Failed to get modinfo for kernel module: %s" % module)
4648
self['kmod_ignore'] = module
4749
return

0 commit comments

Comments
 (0)