Changeset 703 in MondoRescue
- Timestamp:
- Jul 22, 2006, 2:19:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r692 r703 766 766 done 767 767 if [ "$incoming" = "LVMFILES:" ] ; then 768 incoming=`ReadLine`769 lvmversion=""768 incoming=`ReadLine` 769 lvmversion="" 770 770 while [ "$incoming" != "" ] ; do 771 771 if echo "$incoming" | grep -x " *#.*" &> /dev/null ; then 772 # echo "Skipping '$incoming'" 773 incoming=`ReadLine` 774 continue 772 incoming=`ReadLine` 773 continue 775 774 fi 776 775 filelist=`GenerateListForFile "$incoming"` … … 778 777 lvmresolved=`ResolveSoftlink $tool` 779 778 if [ "$tool" == "$lvmresolved" ]; then 780 echo "$tool" >> $tempfile779 echo "$tool" >> $tempfile 781 780 elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then 782 if [ "$lvmversion" = "" ] ; then783 lvmversion=`$lvmresolved`784 echo "$lvmresolved" >> $tempfile785 fi786 toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`787 if [ "$lvmversion" == "200" ]; then788 # pvdata and lvmcreate_initrd don't exist in LVM2789 case "$toolstripped" in790 "pvdata")791 continue792 ;;793 "lvmcreate_initrd")794 continue795 ;;796 esac797 fi798 toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped799 if [ -e "$toolpath" ] ; then800 echo "$toolpath" >> $tempfile801 echo "$tool" >> $tempfile802 else803 toolpath="/lib/lvm-"$lvmversion"/"$toolstripped804 fi805 if [ -e "$toolpath" ] ; then806 echo "$toolpath" >> $tempfile807 echo "$tool" >> $tempfile808 else809 echo "Where are your LVM-Tools? Couldn't find $tool"810 fi811 else812 echo "$tool" >> $tempfile813 fi781 if [ "$lvmversion" = "" ] ; then 782 lvmversion=`$lvmresolved` 783 echo "$lvmresolved" >> $tempfile 784 fi 785 toolstripped=`echo $tool | $AWK -F / '{print $NF;}'` 786 if [ "$lvmversion" == "200" ]; then 787 # pvdata and lvmcreate_initrd don't exist in LVM2 788 case "$toolstripped" in 789 "pvdata") 790 continue 791 ;; 792 "lvmcreate_initrd") 793 continue 794 ;; 795 esac 796 fi 797 toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped 798 if [ -e "$toolpath" ] ; then 799 echo "$toolpath" >> $tempfile 800 echo "$tool" >> $tempfile 801 else 802 toolpath="/lib/lvm-"$lvmversion"/"$toolstripped 803 fi 804 if [ -e "$toolpath" ] ; then 805 echo "$toolpath" >> $tempfile 806 echo "$tool" >> $tempfile 807 else 808 echo "Where are your LVM-Tools? Couldn't find $tool" 809 fi 810 else 811 echo "$tool" >> $tempfile 812 fi 814 813 done 815 814 progress=$(($progress+1))
Note:
See TracChangeset
for help on using the changeset viewer.