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:57:29 +0100
commitf205c40112d90eebb8f2d57c4956273be91e3fd1 (patch)
tree968ad4caa957846a3952340e48ab326e5a2ecdc1
parent77081fa1139a995e6efbb3a881ca419adc6d2385 (diff)
downloadmkinitcpio-f205c40112d90eebb8f2d57c4956273be91e3fd1.tar.gz
mkinitcpio-f205c40112d90eebb8f2d57c4956273be91e3fd1.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