summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/autodetect19
1 files changed, 9 insertions, 10 deletions
diff --git a/install/autodetect b/install/autodetect
index 87f343c..01b4f48 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -20,22 +20,21 @@ install ()
done
}
- for fs in $(findfs | sort | uniq); do
- for mod in $(find "${MODULEDIR}" -type f -name "${fs}.ko"); do
- if [ "x${mod}" != "x" ]; then
- AUTODETECT="${AUTODETECT} ${mod}"
- fi
- done
- done
-
-
if [ -e /sbin/mdadm ]; then
if [ $UID -eq 0 -o "$(groups | grep disk)" != "" ]; then
+ for fs in $(findfs | sort | uniq); do
+ for mod in $(find "${MODULEDIR}" -type f -name "${fs}.ko"); do
+ if [ "x${mod}" != "x" ]; then
+ AUTODETECT="${AUTODETECT} ${mod}"
+ fi
+ done
+ done
+
AUTODETECT="$AUTODETECT
$(mdadm -E -s /dev/hd* /dev/sd* /dev/rd/* /dev/ida/* /dev/cciss/* /dev/ataraid/* \
| awk -Flevel= '{print $2}' | awk '{print $1}')"
else
- err "User does not have proper permissions to read superblocks, raid modules are not detected"
+ err "User does not have proper permissions to read superblocks, raid and filesystem modules are not detected"
fi
fi