|
|
e83cdd |
From 9b2497dffb8f699ce040cdbafa967f5fe02b57b6 Mon Sep 17 00:00:00 2001
|
|
|
e83cdd |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
e83cdd |
Date: Fri, 2 Aug 2019 14:26:23 +0200
|
|
|
e83cdd |
Subject: [PATCH] 90kernel-modules-extra: don't resolve symlinks before instmod
|
|
|
e83cdd |
|
|
|
e83cdd |
When you install a third-party driver, you will probably end in a
|
|
|
e83cdd |
situation, where the module will be in a different directory and
|
|
|
e83cdd |
in $depmod_module_dir you will only have symlink. If we resolve the
|
|
|
e83cdd |
symlink before we pass the module path to instmod, the dracut-install
|
|
|
e83cdd |
will only include the module with its original path, but not the
|
|
|
e83cdd |
symlink. Hence the module can't be automatically loaded.
|
|
|
e83cdd |
|
|
|
e83cdd |
Dracut-install is clever enough to handle symlinks and will include both
|
|
|
e83cdd |
the symlink and the module to the initrd.
|
|
|
e83cdd |
|
|
|
e83cdd |
(cherry picked from commit d1afff43aea01c8d43817adf3ac4041dd4b9f022)
|
|
|
e83cdd |
|
|
|
e83cdd |
Resolves: #1720275
|
|
|
e83cdd |
---
|
|
|
e83cdd |
modules.d/90kernel-modules-extra/module-setup.sh | 2 +-
|
|
|
e83cdd |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
e83cdd |
|
|
|
e83cdd |
diff --git a/modules.d/90kernel-modules-extra/module-setup.sh b/modules.d/90kernel-modules-extra/module-setup.sh
|
|
|
e83cdd |
index c0a2b7f9..1706c822 100755
|
|
|
e83cdd |
--- a/modules.d/90kernel-modules-extra/module-setup.sh
|
|
|
e83cdd |
+++ b/modules.d/90kernel-modules-extra/module-setup.sh
|
|
|
e83cdd |
@@ -187,7 +187,7 @@ installkernel()
|
|
|
e83cdd |
printf "^%s\.ko(\.gz|\.bz2|\.xz)?:\n" "${pathlist[@]}" \
|
|
|
e83cdd |
| (LANG=C grep -E -o -f - -- "$depmod_modules_dep" || exit 0) \
|
|
|
e83cdd |
| tr -d ':' \
|
|
|
e83cdd |
- | (cd "$depmod_module_dir" || exit; xargs -r realpath -e --) \
|
|
|
e83cdd |
+ | (cd "$depmod_module_dir" || exit; xargs -r realpath -se --) \
|
|
|
e83cdd |
| instmods || return 1
|
|
|
e83cdd |
|
|
|
e83cdd |
return 0
|
|
|
e83cdd |
|