Skip to content

Commit

Permalink
make depmod use the correct kernel version, improve logging
Browse files Browse the repository at this point in the history
Signed-off-by: Zen <[email protected]>
  • Loading branch information
desultory committed Aug 9, 2024
1 parent 560d1c6 commit fa47301
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ugrd/kmod/kmod.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'desultory'
__version__ = '2.12.0'
__version__ = '2.12.1'

from pathlib import Path
from subprocess import run
Expand Down Expand Up @@ -220,7 +220,8 @@ def process_module_metadata(self) -> None:
@unset('no_kmod', "no_kmod is enabled, skipping.", log_level=30)
def regen_kmod_metadata(self) -> None:
""" Regenerates kernel module metadata files using depmod. """
self._run(['depmod', '-b', self['build_dir'], '-o', self['build_dir']])
self.logger.info("Regenerating kernel module metadata files.")
self._run(['depmod', '--basedir', self['build_dir'], '--outdir', self['build_dir'], self['kernel_version']])


def _add_kmod_firmware(self, kmod: str) -> None:
Expand Down

0 comments on commit fa47301

Please sign in to comment.