Changeset 124 in MondoRescue for branches/2.05/mindi/mindi


Ignore:
Timestamp:
Nov 19, 2005, 1:04:10 AM (15 years ago)
Author:
bcornec
Message:

add MINDI_CONF to the mindi LOGFILE (The warning that we use /etc/mindi/deplist.txt should be bigger, but that is a first step)
In that case mindi loops fdisk'ing -l /dev/ida/c*d*, including the
/dev/ida/c*d*p*, which is useless, but consumes an enormous amount of time.
The patch also includes some debugging enhancement
(Philippe De Muyter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mindi/mindi

    r102 r124  
    651651    echo "MONDO_HOME = $MONDO_HOME" >> $LOGFILE
    652652    [ -e "/etc/mindi" ] && MINDI_CONF=/etc/mindi || MINDI_CONF=$MINDI_HOME
     653    echo "MINDI_CONF = $MINDI_CONF" >> $LOGFILE
    653654    mkdir -p $CACHE_LOC
    654655}
     
    14201421#       partition_format="`$FDISK -l 2>> $LOGFILE | tr -s '\t' ' ' | grep -w "$absolute_partition" | $AWK 'x=$(NF-1}'`"
    14211422        partition_format="`$FDISK -l 2>> $LOGFILE | tr '*' ' ' | tr '+' ' ' | tr -s ' ' '\t' | grep -w "$absolute_partition" | cut -f5`"
    1422             echo "------- $FDISK log ------------" >> $LOGFILE
     1423            echo "------- $FDISK -l log ------------" >> $LOGFILE
    14231424            cat $FDISKLOG >> $LOGFILE
    14241425            echo "------- $FDISK log end ------------" >> $LOGFILE
     
    14351436        fi
    14361437        if [ ! "$partition_mountpt" ] ; then
    1437         for qq in "" `find /dev/ida/c*d*` ; do
     1438        for qq in "" `find /dev/ida/c*d* ! -name '*p*'` ; do
    14381439        partition_format=`$FDISK -l $qq 2>> $LOGFILE | grep -w "$c_p" | sed 's/12/|/' | tr -s '\t' ' ' | cut -d'|' -f2 | cut -d' ' -f2-9`
    1439                 echo "------- $FDISK log ------------" >> $LOGFILE
     1440                echo "------- $FDISK -l log ------------" >> $LOGFILE
    14401441                cat $FDISKLOG >> $LOGFILE
    14411442                echo "------- $FDISK log end ------------" >> $LOGFILE
     
    24452446# patch from Bill <bill@iwizard.biz> - 2003/08/25
    24462447    res=`$FDISK -s $device`
    2447     echo "------- $FDISK log ------------" >> $LOGFILE
     2448    echo "------- $FDISK -l log ------------" >> $LOGFILE
    24482449    cat $FDISKLOG >> $LOGFILE
    24492450    echo "------- $FDISK log end ------------" >> $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.