[arch-projects] [mkinitcpio][PATCH 6/8] function: suppress errors from modprobe

Dave Reisner d at falconindy.com
Thu Jan 5 14:26:12 EST 2012


kmod is a bit noisier about unresolvable aliases, but we don't really
care for the purposes of creating the module whitelist.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
This is backwards compat with m-i-t.

 functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/functions b/functions
index 306c077..e5b4195 100644
--- a/functions
+++ b/functions
@@ -129,7 +129,7 @@ auto_modules() {
     IFS=$'\n' read -rd '' -a mods < \
         <(find /sys/devices -name modalias -exec sort -u {} + |
         # delimit each input by a newline, expanded in place
-        xargs -d $'\n' modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" |
+        xargs -d $'\n' modprobe -qd "$BASEDIR" -aRS "$KERNELVERSION" |
         sort -u)
 
     printf "%s\n" "${mods[@]//-/_}"
-- 
1.7.8.1



More information about the arch-projects mailing list