Changeset 2530 in MondoRescue for branches/2.2.9/mindi


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
Location:
branches/2.2.9/mindi
Files:
2 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
  • branches/2.2.9/mindi/mindi

    r2529 r2530  
    12671267            fi
    12681268        fi
     1269        skip=0
    12691270        if [ "$EXCLUDE_DEVS" ] ; then
    12701271            for d in "$EXCLUDE_DEVS" ; do
    12711272                if  [ "`echo " $current_partition " | grep " $d"`" != "" ]; then
    12721273                    echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE
    1273                     continue
     1274                    continue
     1275                    skip=1
    12741276                fi
    12751277            done
     1278        fi
     1279        if [ $skip -eq 1 ]; then
     1280            continue
    12761281        fi
    12771282        if [ ! "$partition_mountpt" ] ; then
Note: See TracChangeset for help on using the changeset viewer.