diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-01-04 19:04:38 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-01-05 20:22:21 +0100 |
commit | 52c3f56db94f8d56c584abc9b09f450551298399 (patch) | |
tree | 78ae0dbdbd54d24e75ec8c609ccd33ab3b671649 | |
parent | 09af3c9bf3e549edc650c41393ed6bdbb56a8248 (diff) | |
download | mkinitcpio-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-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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[@]//-/_}" |