Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/ugrd/kmod/kmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,15 @@ def add_kmod_deps(self):
"""Adds all kernel modules to the initramfs dependencies.
Always attempt to add firmware, continuing if no_kmod is set.
If they are compressed with a supported extension, they are decompressed before being added.
Adds modprobe to the binaries list if no_kmod is not set.
"""
if not self["no_kmod"]:
self.logger.debug("Adding modprobe to binaries list.")
self["binaries"] = "modprobe"
else:
self.logger.info("no_kmod is enabled, skipping adding modprobe to binaries list.")

for kmod in self["kernel_modules"]:
if self.get("kernel_version"):
_add_kmod_firmware(self, kmod)
Expand Down
2 changes: 0 additions & 2 deletions src/ugrd/kmod/kmod.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
modules = [ "ugrd.kmod.standard_mask", "ugrd.kmod.platform", "ugrd.kmod.input" ]

binaries = [ "modprobe" ]

kmod_pull_firmware = true
kmod_decompress_firmware = true

Expand Down