Blame 0018-dracut-functions.sh-install_kmod_with_fw-delay-.kern.patch
|
Harald Hoyer |
ada75c |
From e12c1a8da19b373aee46f7352e60511ac1a2fc16 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
ada75c |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
ada75c |
Date: Thu, 1 Mar 2012 17:45:30 +0100
|
|
Harald Hoyer |
ada75c |
Subject: [PATCH] dracut-functions.sh:install_kmod_with_fw() delay
|
|
Harald Hoyer |
ada75c |
.kernelmodseen
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
first check for omit, then mark the kernel module as seen
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
when we temporarily omit_drivers, we don't want to mark them as seen.
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
example: nfs.ko module in kernel-modules, but the nfs module
|
|
Harald Hoyer |
ada75c |
should be able to load it later on.
|
|
Harald Hoyer |
ada75c |
---
|
|
Harald Hoyer |
ada75c |
dracut-functions.sh | 4 ++--
|
|
Harald Hoyer |
ada75c |
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
ada75c |
index c7337e9..20fc6e1 100755
|
|
Harald Hoyer |
ada75c |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
ada75c |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
ada75c |
@@ -980,8 +980,6 @@ install_kmod_with_fw() {
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
[[ -e "$initdir/.kernelmodseen/${1##*/}" ]] && return 0
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
- > "$initdir/.kernelmodseen/${1##*/}"
|
|
Harald Hoyer |
ada75c |
-
|
|
Harald Hoyer |
ada75c |
if [[ $omit_drivers ]]; then
|
|
Harald Hoyer |
ada75c |
local _kmod=${1##*/}
|
|
Harald Hoyer |
ada75c |
_kmod=${_kmod%.ko}
|
|
Harald Hoyer |
ada75c |
@@ -996,6 +994,8 @@ install_kmod_with_fw() {
|
|
Harald Hoyer |
ada75c |
fi
|
|
Harald Hoyer |
ada75c |
fi
|
|
Harald Hoyer |
ada75c |
|
|
Harald Hoyer |
ada75c |
+ > "$initdir/.kernelmodseen/${1##*/}"
|
|
Harald Hoyer |
ada75c |
+
|
|
Harald Hoyer |
ada75c |
inst_simple "$1" "/lib/modules/$kernel/${1##*/lib/modules/$kernel/}" \
|
|
Harald Hoyer |
ada75c |
|| return $?
|
|
Harald Hoyer |
ada75c |
|