Changeset 3166 in MondoRescue for branches/3.0/mindi/mindi
- Timestamp:
- Jul 25, 2013, 10:01:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r3163 r3166 297 297 d=`dirname "$d"` 298 298 done 299 if [ -d "$incoming" ]; then299 if [ -d "$incoming" -a ! -h "$incoming" ]; then 300 300 find $incoming/* -maxdepth 0 2> /dev/null | CopyDependenciesToDirectory $outdir 0 301 301 elif [ -e "$incoming" ] && [ $found = "false" ]; then … … 903 903 link=`readlink $file` 904 904 d=`dirname $file` 905 # Is link a relative or full path name 905 906 fchar=`echo $link | cut -c1` 906 907 # If mother dir is a link print it 907 908 if [ -h "$d" ]; then 908 909 echo "$d" 909 d=`readlink $d` 910 d2=`readlink $d` 911 c2=`echo $d2 | | cut -c1` 912 if [ "$c2" != "/" ]; then 913 if [ "$c2" != "." ]; then 914 d="/$d2" 915 else 916 d="$d/$d2" 917 fi 918 fi 910 919 fi 911 920 if [ "$fchar" != "/" ]; then … … 2103 2112 cp -f $MINDI_TMP/mondo-restore.cfg $bigdir/tmp &> /dev/null 2104 2113 fi 2105 [ -d "/mnt/.boot.d" ] && echo " Oh Jebus" > $bigdir/tmp/DUMBASS-GENTOO2114 [ -d "/mnt/.boot.d" ] && echo "GENTOO" > $bigdir/tmp/DUMBASS-GENTOO 2106 2115 DropOptimizedLibraries $needlist $bigdir 2107 2116 echo -en "Assembling dependency files" … … 2565 2574 # Remove directories from the list, as tar will create them anyway 2566 2575 # and it may hurt if /lib is in it as on Debian/Ubuntu 2576 # recent bash says that -d is true for a link to a dir ! 2567 2577 for f in `sort -u $MINDI_TMP/minimal.lis`; do 2568 if [ ! -d$f ]; then2578 if [ -e $f -a ! -d $f ] || [ -h $f ]; then 2569 2579 finallist="$finallist $f" 2570 2580 fi … … 2724 2734 for d in "/lib" "/usr/lib"; do 2725 2735 if [ -d "$d/firmware" ]; then 2726 cp - rp"$d/firmware" "$mountpoint/$d"2736 cp -a "$d/firmware" "$mountpoint/$d" 2727 2737 fi 2728 2738 done … … 2731 2741 for d in "/lib" "/usr/lib" "/lib64" "/usr/lib64"; do 2732 2742 if [ -d "$d/multipath" ]; then 2733 cp - rp"$d/multipath" "$mountpoint/$d"2743 cp -a "$d/multipath" "$mountpoint/$d" 2734 2744 fi 2735 2745 done
Note:
See TracChangeset
for help on using the changeset viewer.