Skip to content

Commit

Permalink
kernel: do not try to probe builtin modules on empty kmod package ins…
Browse files Browse the repository at this point in the history
…tall

Builtin modules are always present, and trying to load them will cause
modprobe to spew errors when installing the empty kmod packages.

Fix this by never generating any postinst module install instructions
for builtin modules.

Fixes #842.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
  • Loading branch information
KanjiMonster committed Jul 20, 2017
1 parent 6bdb662 commit 34c01e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/kernel.mk
Expand Up @@ -136,6 +136,7 @@ define ModuleAutoLoad
local mod; \
shift 2; \
for mod in $$$$$$$$mods; do \
[ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ] || continue; \
mkdir -p $(2)/etc/modules.d; \
echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \
done; \
Expand All @@ -154,6 +155,7 @@ define ModuleAutoLoad
local mod; \
shift 3; \
for mod in $$$$$$$$mods; do \
[ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ] || continue; \
mkdir -p $(2)/etc/modules.d; \
echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \
done; \
Expand Down

0 comments on commit 34c01e6

Please sign in to comment.