summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-01-24 14:57:29 +0100
committerThomas Bächler <thomas@archlinux.org>2010-01-24 14:58:17 +0100
commit33e55e4c9d873550842a21e6071044b984b26c28 (patch)
treedb7d75b3909894c952c4dc9b948f3af6cae6609c
parent880bc44f247e9b32d0c9aebd40d1a16a660fbf64 (diff)
downloadmkinitcpio-33e55e4c9d873550842a21e6071044b984b26c28.tar.gz
mkinitcpio-33e55e4c9d873550842a21e6071044b984b26c28.tar.xz
Use modprobe --resolve-alias for resolving aliases in autodetect as Arch's udev 150-1 removes resolve-modalias
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 7d692d9..49b4ab4 100644
--- a/functions
+++ b/functions
@@ -4,7 +4,7 @@ auto_modules ()
aliases="$(find /sys/devices/ -name modalias -exec cat {} +)"
mods=""
for a in $aliases; do
- m="$(resolve-modalias "/lib/modules/${KERNELVERSION}/modules.alias" "$a")"
+ m="$(modprobe --set-version ${KERNELVERSION} --resolve-alias "$a")"
[ -n "$m" ] && mods="$mods $m"
done