Skip to content

Commit f984e58

Browse files
committed
don't add modprobe to the binaries list if no_kmod is set
Signed-off-by: Zen <[email protected]>
1 parent b7b6e96 commit f984e58

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/ugrd/kmod/kmod.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,15 @@ def add_kmod_deps(self):
513513
"""Adds all kernel modules to the initramfs dependencies.
514514
Always attempt to add firmware, continuing if no_kmod is set.
515515
If they are compressed with a supported extension, they are decompressed before being added.
516+
517+
Adds modprobe to the binaries list if no_kmod is not set.
516518
"""
519+
if not self["no_kmod"]:
520+
self.logger.debug("Adding modprobe to binaries list.")
521+
self["binaries"] = "modprobe"
522+
else:
523+
self.logger.info("no_kmod is enabled, skipping adding modprobe to binaries list.")
524+
517525
for kmod in self["kernel_modules"]:
518526
if self.get("kernel_version"):
519527
_add_kmod_firmware(self, kmod)

src/ugrd/kmod/kmod.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
modules = [ "ugrd.kmod.standard_mask", "ugrd.kmod.platform", "ugrd.kmod.input" ]
22

3-
binaries = [ "modprobe" ]
4-
53
kmod_pull_firmware = true
64
kmod_decompress_firmware = true
75

0 commit comments

Comments
 (0)