From c4fbca2a3ed289d60feb46ef60cf68386c2c9331 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sun, 15 Oct 2006 18:51:34 +0000 Subject: fixed autodetection git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@175 880c04e9-e011-0410-abf7-b926e227c9cd --- install/autodetect | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 01b4f48..8b8155b 100644 --- a/install/autodetect +++ b/install/autodetect @@ -20,22 +20,22 @@ install () 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 + 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 + if [ -e /sbin/mdadm ]; then 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 and filesystem modules are not detected" fi + else + err "User does not have proper permissions to read superblocks, raid and filesystem modules are not detected" fi for m in $AUTODETECT; do -- cgit v1.2.3-24-g4f1b