File 0533-instmods-check-modules.builtin-in-srcmods.patch of Package dracut.12460
From 41c4ef96400cd1dbcce175a4b909ebdbd429e5a2 Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Thu, 13 Jul 2017 21:17:27 +0200
Subject: [PATCH] instmods: check modules.builtin in $srcmods
Running dracut with --kmoddir causes lots of errors like this:
grep: /lib/modules/4.4.73-default/modules.builtin: No such file or directory
Fix this by looking up modules.builtin in the proper path.
Reference: bsc#1048606
---
dracut-init.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-init.sh b/dracut-init.sh
index c9413907..3f30cc9c 100644
--- a/dracut-init.sh
+++ b/dracut-init.sh
@@ -1137,7 +1137,7 @@ instmods() {
return 0
fi
- if grep -q "/${_mod}.ko" /lib/modules/$kernel/modules.builtin; then
+ if grep -q "/${_mod}.ko" $srcmods/modules.builtin; then
# Module is built-in
return 0
fi
--
2.12.3