Changeset 2546 in MondoRescue for branches/2.2.10/mindi/mindi


Ignore:
Timestamp:
Jan 21, 2010, 8:50:00 PM (14 years ago)
Author:
Bruno Cornec
Message:

svn merge -r 2523:2545 /mondorescue/branches/2.2.9

  • Adds the --rescue flag to ntfsclone (Andree Leidenfrost andree_at_debian.org)
  • Fix 2 typos in the HOWTO (reported by Bram Mertens bram-mertens_at_linux.be)
  • Patch from Rogério Brito rbrito_at_ime.usp.br which fixes errors in man pages format
  • Fix syntax issue in analyze-my-lvm
  • Better doc for pre and post
  • Finally the function ListLvmDrivesAndPartitions is used, as it creates info parsed by mindi !! So reverting back to filter excluded devices in it
  • Better exclusion of the LVs from the mountlist at restore time if excludedevs used
  • Exclude LVs whose VGs are excluded now in analyze-my-lvm
  • First attempt to support device exclusion at restore time through a new boot param excludedevs
  • Fix a bug preventing execution of the pre script in init
  • LVM exclusion based on devices was flawed as the function targeted was not really useful. That script shold be fully rewritten to have a data structure contaiing what is needed. Anyway the current patch should allow to have some improvements
  • Do not report Duplicate mount point when lvm is used
  • each device of the EXCLUDE_DEVS list is now used correctly and partitions found on this device are excluded
  • Fix the way the dsf is declared in the linked list to have it work
  • Fix #383 by using pvdisplay instead of relying on 8e as partition type
  • Try to fix #384 by always excluding the dfs per users wish
  • Also use the exclude dev feature in case of multipath and exclude resulting /dev/mapper/mpath type of files
  • Fix #381 by postfixing spaces at the end of the strings to be cheked in strstr
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/mindi

    r2514 r2546  
    959959            LVM="false"
    960960        fi
     961        # Excluded LVs and GVs are not reported here
    961962        all_partitions=`cat $MINDI_TMP/lvm.res | grep -F ">>>" | cut -d' ' -f2-`
    962963    fi
    963964    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
    964 #    echo "all partitions = $all_partitions" > /dev/stderr
    965965    for i in $IMAGE_DEVS ; do
    966966        mount | grep -F "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted."
     
    12341234            fi
    12351235        fi
    1236         if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep -F " $current_partition "`" ] || [ "`echo " $EXCLUDE_DEVS " | grep " $current_partition "`" ] ; then
    1237             LogFile "Excluding $current_partition from mountlist"
    1238             continue
     1236        skip=0
     1237        if [ "$EXCLUDE_DEVS" ] ; then
     1238            for d in $EXCLUDE_DEVS ; do
     1239                if  [ "`echo " $current_partition " | grep " $d"`" != "" ]; then
     1240                    LogFile "Excluding $current_partition from mountlist (due to excluded device $d)"
     1241                    skip=1
     1242                    continue
     1243                fi
     1244            done
     1245        fi
     1246        if [ $skip -eq 1 ]; then
     1247            continue
    12391248        fi
    12401249        if [ ! "$partition_mountpt" ] ; then
     
    12921301    local file=$1
    12931302    # Coherency verification
    1294     ML0=`cat $file | wc -l`
     1303    ML01=`cat $file | wc -l`
     1304    ML02=`cat $file | grep -v ' lvm ' | wc -l`
    12951305    ML1=`$AWK '{print $1}' $file | sort -u | wc -l`
    1296     ML2=`$AWK '{print $2}' $file | sort -u | wc -l`
    1297     if [ "$ML0" -ne "$ML1" ]; then
     1306    ML2=`$AWK '{print $2}' $file | grep -v ' lvm ' | sort -u | wc -l`
     1307    if [ "$ML01" -ne "$ML1" ]; then
    12981308        LogFile "--------------------------------------------"
    12991309        echo "WARNING: Duplicate device entry in mountlist" | tee -a $LOGFILE
    13001310        LogFile "--------------------------------------------"
    13011311    fi
    1302     if [ "$ML0" -ne "$ML2" ]; then
     1312    if [ "$ML02" -ne "$ML2" ]; then
    13031313        LogFile "--------------------------------------------"
    13041314        echo "WARNING: Duplicate mountpoint entry in mountlist" | tee -a $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.