Changeset 675


Ignore:
Timestamp:
Jun 20, 2006, 1:32:07 PM (13 years ago)
Author:
andree
Message:

Amended mindi to deal properly with LVM tool lvmiopversion and with
lvmcreate_initrd and pvdata which don't exist in LVM2 whilst analysing
dependency requirements.

Also fixes Debian bug #351687.

Location:
branches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0.8/mindi/mindi

    r674 r675  
    777777        for tool in $filelist ; do
    778778            lvmresolved=`ResolveSoftlink $tool`
    779             if echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
     779            if [ "$tool" == "$lvmresolved" ]; then
     780            echo "$tool" >> $tempfile
     781            elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
    780782            if [ "$lvmversion" = "" ] ; then
    781783            lvmversion=`$lvmresolved`
     
    783785            fi
    784786            toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`
     787            if [ "$lvmversion" == "200" ]; then
     788            # pvdata and lvmcreate_initrd don't exist in LVM2
     789            case "$toolstripped" in
     790                "pvdata")
     791                continue
     792                ;;
     793                "lvmcreate_initrd")
     794                continue
     795                ;;
     796            esac
     797            fi
    785798            toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped
    786799            if [ -e "$toolpath" ] ; then
  • branches/stable/mindi/mindi

    r674 r675  
    777777        for tool in $filelist ; do
    778778            lvmresolved=`ResolveSoftlink $tool`
    779             if echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
     779            if [ "$tool" == "$lvmresolved" ]; then
     780            echo "$tool" >> $tempfile
     781            elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
    780782            if [ "$lvmversion" = "" ] ; then
    781783            lvmversion=`$lvmresolved`
     
    783785            fi
    784786            toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`
     787            if [ "$lvmversion" == "200" ]; then
     788            # pvdata and lvmcreate_initrd don't exist in LVM2
     789            case "$toolstripped" in
     790                "pvdata")
     791                continue
     792                ;;
     793                "lvmcreate_initrd")
     794                continue
     795                ;;
     796            esac
     797            fi
    785798            toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped
    786799            if [ -e "$toolpath" ] ; then
Note: See TracChangeset for help on using the changeset viewer.