summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-25 14:06:13 +0200
committerDave Reisner <dreisner@archlinux.org>2011-06-26 00:58:32 +0200
commit9bcc18099be5084306ae1015f62e1d1ea4f3c741 (patch)
tree43f240c9149f037797cd634750dea6bb483346d2
parentfb8efc7425fca4fed457ceb4ca7e474ee2ffe380 (diff)
downloadmkinitcpio-9bcc18099be5084306ae1015f62e1d1ea4f3c741.tar.gz
mkinitcpio-9bcc18099be5084306ae1015f62e1d1ea4f3c741.tar.xz
functions: support $BASEDIR in modprobe
Signed-off-by: Dave Reisner <d@falconindy.com>
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index ab0f850..ee6921c 100644
--- a/functions
+++ b/functions
@@ -69,7 +69,7 @@ auto_modules() {
IFS=$'\n' read -rd '' -a mods < \
<(find /sys/devices -name modalias -exec sort -zu {} + |
- xargs -0 modprobe -aRS "$KERNELVERSION" |
+ xargs -0 modprobe -d "$BASEDIR" -aRS "$KERNELVERSION" |
sort -u)
printf "%s\n" "${mods[@]//-/_}"