summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-01-04 19:04:38 +0100
committerDave Reisner <dreisner@archlinux.org>2012-01-05 20:22:21 +0100
commit52c3f56db94f8d56c584abc9b09f450551298399 (patch)
tree78ae0dbdbd54d24e75ec8c609ccd33ab3b671649
parent09af3c9bf3e549edc650c41393ed6bdbb56a8248 (diff)
downloadmkinitcpio-52c3f56db94f8d56c584abc9b09f450551298399.tar.gz
mkinitcpio-52c3f56db94f8d56c584abc9b09f450551298399.tar.xz
function: suppress errors from modprobe
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@archlinux.org>
-rw-r--r--functions2
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[@]//-/_}"