From c65948fcdfca6da75f42615959660c2293c907c4 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 7 May 2006 13:03:33 +0000 Subject: 'fixed mdadm check and modprobe hardcoded' git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@79 880c04e9-e011-0410-abf7-b926e227c9cd --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 73d8a21..88c26eb 100644 --- a/install/autodetect +++ b/install/autodetect @@ -8,7 +8,7 @@ install () -e "/usb/" -e "/ide/" -e "/ieee1394/" -e "/cdrom"\ -e "/net/" -e "/pcmcia") $(cat /proc/filesystems | grep -v nodev) \ - $(mdadm -E -s /dev/hd* /dev/sd* | awk -Flevel= '{print $2}' | awk '{print $1}') " + $([ -e /sbin/mdadm ] && mdadm -E -s /dev/hd* /dev/sd* | awk -Flevel= '{print $2}' | awk '{print $1}') " for m in $AUTODETECT; do modname="$(basename ${m%%\.ko})" -- cgit v1.2.3-24-g4f1b