Changeset 967 in MondoRescue for branches


Ignore:
Timestamp:
Nov 23, 2006, 5:58:29 PM (17 years ago)
Author:
Bruno Cornec
Message:

Reset LVM to false if analyze-my-lvm exit with -1 (problem with `)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r966 r967  
    11631163absolute_partition old_partition_fmt current_lvolume
    11641164
    1165     echo "Your raw fstab file looks like this:-" >> $LOGFILE
     1165    echo "Your raw fstab file looks like this:" >> $LOGFILE
     1166    echo "------------------------------------" >> $LOGFILE
    11661167    cat $MY_FSTAB >> $LOGFILE
    1167     echo "Your mountlist will look like this:-" | tee -a $LOGFILE
     1168    echo "Your mountlist will look like this:" | tee -a $LOGFILE
     1169    echo "-----------------------------------" >> $LOGFILE
    11681170
    11691171# scratchdir, mountlist(OUT)
     
    11851187    if [ $LVM != "false" ]; then
    11861188        echo -en "\rAnalyzing LVM...\r"
    1187         all_partitions=`$MINDI_LIB/analyze-my-lvm | grep -F ">>>" | cut -d' ' -f2-32`
     1189        $MINDI_LIB/analyze-my-lvm | grep -F ">>>" | cut -d' ' -f2-32 > $MINDI_TMP/lvm.res
    11881190        if [ $? -eq -1 ]; then
    11891191            LVM="false"
    11901192        fi
     1193        all_partitions=`cat $MINDI_TMP/lvm.res`
    11911194    fi
    11921195    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
     
    22712274    fi
    22722275    # patch from Bill <bill@iwizard.biz> - 2003/08/25
    2273     echo "------- $FDISK -l $device log ------------" >> $LOGFILE
    22742276    res=`$FDISK -s $device 2>> $LOGFILE`
    2275     echo "------- $FDISK log end ------------" >> $LOGFILE
    22762277    # end patch
    22772278    [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2`
Note: See TracChangeset for help on using the changeset viewer.