diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2006-08-20 17:55:36 +0200 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2006-08-20 17:55:36 +0200 |
commit | ee688b1a3c5f2c92735b82ad7c3205e3bcdf5619 (patch) | |
tree | a59fb86c5a01dd0bebe9a27f52152203173e274c | |
parent | e3dd6e6b0b6b2e06cd5b42c25b3bd2320c2af530 (diff) | |
download | mkinitcpio-ee688b1a3c5f2c92735b82ad7c3205e3bcdf5619.tar.gz mkinitcpio-ee688b1a3c5f2c92735b82ad7c3205e3bcdf5619.tar.xz |
'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
-rw-r--r-- | install/autodetect | 3 |
1 files changed, 2 insertions, 1 deletions
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 |