Changeset 3662 in MondoRescue
- Timestamp:
- May 3, 2017, 11:27:13 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi/mindi
r3661 r3662 623 623 filelist=`GenerateListForFile "$incoming"` 624 624 for tool in $filelist ; do 625 626 627 628 629 630 631 632 633 634 635 636 637 625 lvmresolved=`readlink -f $tool` 626 if [ "$tool" = "$lvmresolved" ]; then 627 echo "$tool" >> $tempfile 628 elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then 629 if [ "$lvmversion" = "" ] ; then 630 lvmversion=`$lvmresolved` 631 echo "$lvmresolved" >> $tempfile 632 fi 633 toolstripped=`echo $tool | $AWK -F / '{print $NF;}'` 634 if [ "$lvmversion" = "200" ]; then 635 # pvdata and lvmcreate_initrd don't exist in LVM2 636 case "$toolstripped" in 637 "pvdata") 638 638 continue 639 639 ;; 640 640 "lvmcreate_initrd") 641 641 continue 642 642 ;; 643 643 esac 644 645 646 644 fi 645 toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped 646 if [ -e "$toolpath" ] ; then 647 647 echo "$toolpath" >> $tempfile 648 648 echo "$tool" >> $tempfile 649 649 else 650 650 toolpath="/lib/lvm-"$lvmversion"/"$toolstripped 651 652 653 654 655 656 657 651 fi 652 if [ -e "$toolpath" ] ; then 653 echo "$toolpath" >> $tempfile 654 echo "$tool" >> $tempfile 655 else 656 echo "Where are your LVM-Tools? Couldn't find $tool" 657 fi 658 658 else 659 659 echo "$tool" >> $tempfile … … 2644 2644 done 2645 2645 echo -e "$DONE" 2646 echo -en "INFO: Processing all dependencies links..." 2647 # And their deps 2648 lines=`sort -u $MINDI_TMP/$conf.lis $MINDI_TMP/$conf2.lis2` 2649 noof_lines=`echo $lines | wc -w` 2650 progress=0 2651 for f in $lines; do 2652 mr-read-all-link $f >> $MINDI_TMP/$conf.lis 2653 if [ "`echo $f | cut -c1`" = "/" ]; then 2654 j=`echo $f | cut -c2-` 2655 [ "$j" != "" ] && rm -f $mountpoint/$j 2656 fi 2657 progress=$(($progress+1)) 2658 LogProgress $progress $noof_line 2659 done 2660 echo -e "$DONE" 2646 echo "INFO: Processing all dependencies links for $conf.conf..." 2647 # And their deps except dirs 2648 lines=`sort -u $MINDI_TMP/$conf.lis $MINDI_TMP/$conf.lis2` 2649 rm -f $MINDI_TMP/$conf.lis2 2661 2650 finallist="" 2662 # Remove directories from the list, as tar/cp will create them anyway2651 # Remove directories from the list, as cp will create them anyway 2663 2652 # and it may hurt if /lib is in it as on Debian/Ubuntu 2664 2653 # recent bash says that -d is true for a link to a dir ! 2665 for f in `sort -u $MINDI_TMP/$conf.lis`; do 2654 for f in $lines; do 2655 #for f in `sort -u $MINDI_TMP/$conf.lis`; do 2666 2656 if [ -e "$f" -a ! -d "$f" ] || [ -h "$f" ]; then 2667 2657 # Do not overwrite files already in destination (avoid using option -n of cp not portable) … … 2675 2665 LogFile "INFO: Copying $conf related files with cp -a --parents $fnllist $lis3 -t $mountpoint/" 2676 2666 cp -a --parents $fnllist $lis3 -t $mountpoint/ 2> $templog || LogAll "WARNING: Problem in $conf analysis" $templog 2677 rm -f $MINDI_TMP/$conf.lis $MINDI_TMP/$conf.lis22667 rm -f $MINDI_TMP/$conf.lis 2678 2668 } 2679 2669
Note:
See TracChangeset
for help on using the changeset viewer.