summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/module-init-tools/files/ignore_arch_directory.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/module-init-tools/files/ignore_arch_directory.patch')
-rw-r--r--meta/recipes-kernel/module-init-tools/files/ignore_arch_directory.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-kernel/module-init-tools/files/ignore_arch_directory.patch b/meta/recipes-kernel/module-init-tools/files/ignore_arch_directory.patch
new file mode 100644
index 0000000000..7b30824802
--- /dev/null
+++ b/meta/recipes-kernel/module-init-tools/files/ignore_arch_directory.patch
@@ -0,0 +1,28 @@
1# not sure the reason yet. Keep for a while and verify later.
2#
3# comments added by Kevin Tian <kevin.tian@intel.com>, 2010-07-21
4
5diff -ruN module-init-tools-3.12.orig/modprobe.8 module-init-tools-3.12/modprobe.8
6--- module-init-tools-3.12/modprobe.8.orig
7+++ module-init-tools-3.12/modprobe.8
8@@ -27,6 +27,7 @@
9 (see \fBmodprobe.conf\fR(5)). \fBmodprobe\fR will also use module
10 options specified on the kernel command line in the form of
11 <module>\&.<option>\&.
12+All files in the \fI/etc/modprobe.d/arch/\fR directory are ignored.
13 .PP
14 Note that unlike in 2.4 series Linux kernels (which are not supported
15 by this tool) this version of \fBmodprobe\fR does not
16--- module-init-tools-3.12/modprobe.c.orig
17+++ module-init-tools-3.12/modprobe.c
18@@ -1052,6 +1052,10 @@
19 DIR *dir;
20 int ret = 0;
21
22+ /* ignore everything in this directory */
23+ if (streq(filename, "/etc/modprobe.d/arch"))
24+ return 1;
25+
26 dir = opendir(filename);
27 if (dir) {
28 struct file_entry {