|
Harald Hoyer |
8a8033 |
From e2d92b5adf710bacaea14e3fbca936997c6b9469 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
8a8033 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
8a8033 |
Date: Thu, 20 Oct 2011 12:13:50 +0200
|
|
Harald Hoyer |
8a8033 |
Subject: [PATCH] */module-setup.sh: turn off debugging for module search
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
turn off debugging for module search, because it clutters the debug log
|
|
Harald Hoyer |
8a8033 |
---
|
|
Harald Hoyer |
8a8033 |
modules.d/40network/module-setup.sh | 2 ++
|
|
Harald Hoyer |
8a8033 |
modules.d/90kernel-modules/module-setup.sh | 2 ++
|
|
Harald Hoyer |
8a8033 |
modules.d/90multipath/module-setup.sh | 2 ++
|
|
Harald Hoyer |
8a8033 |
3 files changed, 6 insertions(+), 0 deletions(-)
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
index eb7ef9b..fbf6f34 100755
|
|
Harald Hoyer |
8a8033 |
--- a/modules.d/40network/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
+++ b/modules.d/40network/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
@@ -52,7 +52,9 @@ installkernel() {
|
|
Harald Hoyer |
8a8033 |
done | nmf1 1>&${_merge}
|
|
Harald Hoyer |
8a8033 |
}
|
|
Harald Hoyer |
8a8033 |
# Use two parallel streams to filter alternating modules.
|
|
Harald Hoyer |
8a8033 |
+ set +x
|
|
Harald Hoyer |
8a8033 |
eval "( ( rotor ) ${_side2}>&1 | nmf1 ) ${_merge}>&1"
|
|
Harald Hoyer |
8a8033 |
+ [[ $debug ]] && set -x
|
|
Harald Hoyer |
8a8033 |
}
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
find_kernel_modules_by_path drivers/net | net_module_filter | instmods
|
|
Harald Hoyer |
8a8033 |
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
index 6e3a918..db4b276 100755
|
|
Harald Hoyer |
8a8033 |
--- a/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
+++ b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
@@ -31,7 +31,9 @@ installkernel() {
|
|
Harald Hoyer |
8a8033 |
done | bmf1 1>&${_merge}
|
|
Harald Hoyer |
8a8033 |
}
|
|
Harald Hoyer |
8a8033 |
# Use two parallel streams to filter alternating modules.
|
|
Harald Hoyer |
8a8033 |
+ set +x
|
|
Harald Hoyer |
8a8033 |
eval "( ( rotor ) ${_side2}>&1 | bmf1 ) ${_merge}>&1"
|
|
Harald Hoyer |
8a8033 |
+ [[ $debug ]] && set -x
|
|
Harald Hoyer |
8a8033 |
}
|
|
Harald Hoyer |
8a8033 |
hostonly='' instmods sr_mod sd_mod scsi_dh scsi_dh_rdac scsi_dh_emc
|
|
Harald Hoyer |
8a8033 |
hostonly='' instmods pcmcia firewire-ohci
|
|
Harald Hoyer |
8a8033 |
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
index f68b58d..43f0a3d 100755
|
|
Harald Hoyer |
8a8033 |
--- a/modules.d/90multipath/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
+++ b/modules.d/90multipath/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
@@ -33,6 +33,7 @@ depends() {
|
|
Harald Hoyer |
8a8033 |
}
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
installkernel() {
|
|
Harald Hoyer |
8a8033 |
+ set +x
|
|
Harald Hoyer |
8a8033 |
mp_mod_filter() {
|
|
Harald Hoyer |
8a8033 |
local _mpfuncs='scsi_register_device_handler|dm_dirty_log_type_register|dm_register_path_selector|dm_register_target'
|
|
Harald Hoyer |
8a8033 |
local _f
|
|
Harald Hoyer |
8a8033 |
@@ -45,6 +46,7 @@ installkernel() {
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
( find_kernel_modules_by_path drivers/scsi;
|
|
Harald Hoyer |
8a8033 |
find_kernel_modules_by_path drivers/md ) | mp_mod_filter | instmods
|
|
Harald Hoyer |
8a8033 |
+ [[ $debug ]] && set -x
|
|
Harald Hoyer |
8a8033 |
}
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
install() {
|