Changeset 2530 in MondoRescue for branches/2.2.9/mindi/analyze-my-lvm


Ignore:
Timestamp:
Jan 8, 2010, 1:18:29 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3747@localhost: bruno | 2010-01-08 11:48:24 +0100

  • Still fixing issues related to device exclusion and LVM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/analyze-my-lvm

    r2526 r2530  
    179179    for d in `$LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'`; do
    180180        # Skip devices excluded, coming from mondoarchive
    181         if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $d "`" ]; then
     181        if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $d"`" != "" ]; then
    182182            continue
    183183        fi
     
    185185        if [ -f /etc/multipath.conf ]; then
    186186            i=`GiveMapperOfdm $d`
    187             if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $i "`" ]; then
     187            if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $i"`" != "" ]; then
    188188                continue
    189189            fi
Note: See TracChangeset for help on using the changeset viewer.