Changeset 2995 in MondoRescue
- Timestamp:
- Apr 12, 2012, 3:38:39 PM (13 years ago)
- Location:
- branches/3.0/mindi
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/analyze-my-lvm
r2977 r2995 54 54 # Exclude LVs member of that env var 55 55 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 56 list_of_devices="`mindi -- readalllink $LV_full_string`"56 list_of_devices="`mindi --nolog --readalllink $LV_full_string 2> /dev/null`" 57 57 l="" 58 58 for d in $list_of_devices; do … … 152 152 # If multipath check which type of devide are given, mpath prefered 153 153 for d in $list_of_devices; do 154 l="$l `mindi -- readalllink $d`"154 l="$l `mindi --nolog --readalllink $d 2> /dev/null`" 155 155 l="$l `GiveMapperOfdm $d`" 156 156 done … … 184 184 skip=0 185 185 l="" 186 l="$l `mindi -- readalllink $d`"186 l="$l `mindi --nolog --readalllink $d 2> /dev/null`" 187 187 l="$l `GiveMapperOfdm $d`" 188 188 list_of_devices="`echo $l | sort -u`" … … 207 207 for d in `cat $MINDI_TMP/pv.tmp2`; do 208 208 skip=0 209 l="$l `mindi -- readalllink $d`"209 l="$l `mindi --nolog --readalllink $d 2> /dev/null`" 210 210 l="$l `GiveMapperOfdm $d`" 211 211 list_of_devices="`echo $l | sort -u`" … … 294 294 rm -f $MINDI_TMP/sorteddm 295 295 for d in `ListAllLogicalVolumes` ; do 296 dm=`mindi -- readalllink $d| tail -1`296 dm=`mindi --nolog --readalllink $d 2> /dev/null | tail -1` 297 297 echo "$dm|$d" >> $MINDI_TMP/sorteddm 298 298 done -
branches/3.0/mindi/deplist.d/udev.conf
r2964 r2995 27 27 /sbin/udev 28 28 /sbin/create_static_dev_nodes 29 /sbin/consoletype 29 30 31 # On Mandriva/Mageia at least 32 /etc/makedev.d 33 /sbin/makedev -
branches/3.0/mindi/mindi
r2987 r2995 156 156 if [ _"$MONDO_SHARE" != _"" ] ; then 157 157 echo "------------- mindi logfile included -------------------------" >> /var/log/mondoarchive.log 158 cat $LOGFILE >> /var/log/mondoarchive.log 158 if [ -f $LOGFILE ]; then 159 cat $LOGFILE >> /var/log/mondoarchive.log 160 else 161 echo "No LOGFILE available in that mindi run" >> /var/log/mondoarchive.log 162 fi 159 163 echo "--------------------------------------------------------------">> /var/log/mondoarchive.log 160 164 fi … … 230 234 [ "$KBDEPTH" -gt "128" ] && Die "Edit $MINDI_SBIN/mindi and disable FindAndAddUserKeyboardMappingFile (line 2160, approx.)" 231 235 if [ -e "$bigdir/$mappath" ] ; then 232 LogFile " $mappath already added" >> $LOGFILE236 LogFile "INFO: $mappath already added" >> $LOGFILE 233 237 return 234 238 elif [ -d "$bigdir/$mappath" ] ; then … … 236 240 return 237 241 fi 238 LogFile " Added kbd map $mappath" >> $LOGFILE242 LogFile "INFO: Added kbd map $mappath" >> $LOGFILE 239 243 if [ ! -e "$mappath" ] ; then 240 244 mappath=`grep "i[3-8]86" $MINDI_TMP/keymaps.find | grep "$locale[^r][^/]" | grep -vx " *#.*"` … … 503 507 fi 504 508 if [ ! -e "$1" ] ; then 505 LogIt "WARNING -cannot search specific path '$1'"509 LogIt "WARNING: cannot search specific path '$1'" 506 510 return 1 507 511 fi … … 885 889 for fname in $incoming ; do 886 890 if [ ! -e "$fname" ] ; then 887 LogFile "WARNING -$fname does not exist; cannot be LDD'd."891 LogFile "WARNING: $fname does not exist; cannot be LDD'd." 888 892 if echo $fname | grep lvm &> /dev/null ; then 889 893 LogFile " This warning only affects you if you are using LVM." … … 1414 1418 # Coherency verification 1415 1419 ML01=`cat $file | wc -l` 1416 ML02=`grep -v ' lvm' $file | wc -l`1420 ML02=`grep -vE ' lvm | raid | swap ' $file | wc -l` 1417 1421 ML1=`$AWK '{print $1}' $file | sort -u | wc -l` 1418 ML2=`grep -v ' lvm ' $file | $AWK '{print $2}' | sort -u | wc -l`1422 ML2=`grep -v ' lvm | raid | swap ' $file | $AWK '{print $2}' | sort -u | wc -l` 1419 1423 if [ "$ML01" -ne "$ML1" ]; then 1420 1424 LogFile "--------------------------------------------" … … 2048 2052 for i in $EXTRA_MODS ; do 2049 2053 j=`find lib/modules/$FAILSAFE_KVER -name $i.*o.gz 2> /dev/null` 2050 [ ! "$j" ] && LogFile "WARNING -cannot find failsafe module $i.o.gz"2054 [ ! "$j" ] && LogFile "WARNING: cannot find failsafe module $i.o.gz" 2051 2055 for k in $j ; do 2052 2056 tar cf - $k 2>> $MINDI_TMP/$$.log | (cd "$bigdir" ; tar xf -) || LogIt "ERROR: module $k extraction issue" $MINDI_TMP/$$.log … … 2679 2683 if [ ! -e "/sbin/devfsd" ] || [ "$kernelpath" = "$MINDI_LIB/vmlinuz" ] ; then 2680 2684 LogFile "INFO: Deleting devfsd daemon from ramdisk" 2681 [ ! -e "/sbin/devfsd" ] && LogFile " ...because /sbin/devfsd not found"2682 [ "$kernelpath" = "$MINDI_LIB/vmlinuz" ] && LogFile " ...because kernel is failsafe"2685 [ ! -e "/sbin/devfsd" ] && LogFile " ...because /sbin/devfsd not found" 2686 [ "$kernelpath" = "$MINDI_LIB/vmlinuz" ] && LogFile " ...because kernel is failsafe" 2683 2687 rm -f $mountpoint/sbin/devfsd 2684 2688 fi … … 2722 2726 rm -f ${rdz_fname}.tmp 2723 2727 # log that we are done 2724 LogFile " ...done."2728 LogFile " ...done." 2725 2729 elif [ "$gvFileSystem" = "initramfs" ]; then 2726 2730 # say what will be used … … 2737 2741 umount $mountpoint || Die "Cannot unmount $tempfile" 2738 2742 # log that we are done 2739 LogFile " ...done."2743 LogFile " ...done." 2740 2744 else 2741 2745 Die "Filesystem $gvFileSystem not supported for initrd image. Terminating." … … 2763 2767 fi 2764 2768 2769 # --nolog needs to be first, and is used in analyze-my-lvm 2770 if [ "$1" = "--nolog" ] ; then 2771 shift 2772 LOGFILE=/dev/stderr 2773 else 2774 > $LOGFILE 2775 fi 2765 2776 if [ "$1" = "--printvar" ] ; then 2766 2777 shift … … 2771 2782 fi 2772 2783 2773 > $LOGFILE2774 2784 LogFile "mindi v$MINDI_VERSION" 2775 2785 LogFile "$ARCH architecture detected" … … 2795 2805 LogFile "-----------------------------" 2796 2806 fi 2797 2807 LogFile "In Mindi" 2808 LogFile "--------" 2809 LogFile "EXTRA_SPACE = $EXTRA_SPACE" 2810 LogFile "BOOT_SIZE = $BOOT_SIZE" 2811 LogFile "--------" 2798 2812 2799 2813 trap AbortHere SIGTERM SIGHUP SIGQUIT SIGKILL SIGABRT SIGINT … … 2869 2883 LogFile "-------------" 2870 2884 mount >> $LOGFILE 2871 LogFile "-------------"2872 2885 if [ -e /etc/raidtab ]; then 2873 2886 LogFile "-------------" … … 2928 2941 df -T >> $LOGFILE 2929 2942 LogFile "-------------" 2930 LogFile "List eof extra modules is:"2943 LogFile "List of extra modules is:" 2931 2944 LogFile "$EXTRA_MODS" 2932 2945 LogFile "-------------" … … 3130 3143 3131 3144 for i in loop cdrom ide-cd isofs linear raid0 raid1 raid5 ; do 3132 modprobe $i >> $LOGFILE 2>> $LOGFILE3145 modprobe $i 2>&1 > /dev/null 3133 3146 done 3134 3147 … … 3231 3244 OfferToMakeBootableUSB 3232 3245 fi 3233 LogIt "Finished."3234 3246 elif [ "$TAPEDEV" ] ; then 3235 3247 if [ "$ARCH" != "ia64" ] ; then … … 3254 3266 fi 3255 3267 # cleanup 3256 LogIt " $FRIENDLY_OUTSTRING"3268 LogIt "INFO: $FRIENDLY_OUTSTRING" 3257 3269 for mtpt in $FLOPPY_WAS_MOUNTED ; do 3258 3270 mount $mtpt -
branches/3.0/mindi/mindi-bkphw
r2940 r2995 115 115 } else { 116 116 print "INFO: No Hardware optimized support for your product $productname\n"; 117 print " You may ask your manufacturer to contribute to the mindi project\nfor firmware Disaster Recovery support (harmless)\n";117 print " You may ask your manufacturer to contribute to the mindi project\n for firmware Disaster Recovery support (harmless)\n"; 118 118 } 119 119 rmdir $bkpdir if (-d $bkpdir) ;
Note:
See TracChangeset
for help on using the changeset viewer.