d2c0ca313f
- Ensure that targets such as halt can be reached (bsc#1048698) * adds 0529-systemd-add-missing-.slice-unit.patch * adds 0530-dracut-systemd-dracut-cmdline-ask-fix-dracut-kernel-.patch * adds 0531-dracut-systemd-.service-conflict-with-shutdown-targe.patch - Do not add too many drivers all at once (bsc#1037344) * adds 0532-List-drivers-rather-than-looking-for-reverse-depende.patch - instmods: check modules.builtin in $srcmods (bsc#1048606) * adds 0533-instmods-check-modules.builtin-in-srcmods.patch - ssh-client: ensure is usable in all cases (bsc#1021846) * adds 0535-ssh-client-Include-nss_-libraries.patch - Sync initramfs after creation to ensure entigrity (bsc#1049113) * adds 0536-Sync-initramfs-after-creation.patch OBS-URL: https://build.opensuse.org/request/show/517604 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=316
33 lines
976 B
Diff
33 lines
976 B
Diff
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
|
|
|