summaryrefslogtreecommitdiffstats
path: root/install/autodetect
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-11 09:07:20 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-11 09:07:20 +0100
commitd67250f427937cb4b6f75b27d47d35302bd9890b (patch)
tree31768b40897ce1d9ac3c2b22c1d8fcc89b6ecd23 /install/autodetect
parenta1e8a2cb279f89838a6757fe5f80c5ae37108ca7 (diff)
downloadmkinitcpio-d67250f427937cb4b6f75b27d47d35302bd9890b.tar.gz
mkinitcpio-d67250f427937cb4b6f75b27d47d35302bd9890b.tar.xz
Fix file system autodetection of filesystems when the running kernel and the target kernel don't match.
We need --set-version when resolving filesystem aliases, thanks Tobias.
Diffstat (limited to 'install/autodetect')
-rw-r--r--install/autodetect2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect
index adfee9f..6c9193c 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -20,7 +20,7 @@ install ()
if [ ${UID} -eq 0 -o "$(groups | grep disk)" != "" ]; then
for fs in $(findfs | sort | uniq); do
- allfs="${fs} $(modprobe --resolve-alias ${fs})"
+ allfs="${fs} $(modprobe --set-version ${KERNELVERSION} --resolve-alias ${fs})"
for mod in ${allfs}; do
for modfile in $(find "${MODULEDIR}" -type f -name "${mod}.ko"); do
if [ -n "${modfile}" ]; then