From ee688b1a3c5f2c92735b82ad7c3205e3bcdf5619 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 20 Aug 2006 15:55:36 +0000 Subject: 'upgpkg: fixed dm and md detection in autodetect script' git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@161 880c04e9-e011-0410-abf7-b926e227c9cd --- install/autodetect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index a338d3b..3e891ac 100644 --- a/install/autodetect +++ b/install/autodetect @@ -9,7 +9,8 @@ install () -e '/net/' -e '/pcmcia')" #Filesystem detection, use sysfs instead of /proc - for blk in $(ls /sys/block/*/*/dev | cut -d/ -f5); do + BLOCKDEVICES="$([ "$(echo /sys/block/*/*/dev)" != "/sys/block/*/*/dev" ] && ls /sys/block/*/*/dev | cut -d/ -f5) $([ "$(echo /sys/block/md*/dev)" != "/sys/block/md*/dev" ] && ls /sys/block/md*/dev | cut -d/ -f4) $([ "$(echo /sys/block/dm*/dev)" != "/sys/block/dm*/dev" ] && ls /sys/block/dm*/dev)" + for blk in ${BLOCKDEVICES}; do eval $(/usr/lib/klibc/bin/fstype < /dev/${blk}) for mod in $(find "${MODULEDIR}" -type f -name "${FSTYPE}.ko"); do if [ "x${mod}" != "x" ]; then -- cgit v1.2.3-24-g4f1b