Changeset 3405 in MondoRescue
- Timestamp:
- Aug 6, 2015, 8:10:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3403 r3405 303 303 elif [ -e "$incoming" ] && [ $found = "false" ]; then 304 304 if [ ! -h "$incoming" ]; then 305 tar cf - -C / $incoming 2> >$templog | (cd "$outdir" ; tar xf -) || Die "Cannot copy $incoming to $outdir - did you run out of disk space?" $templog305 tar cf - -C / $incoming 2> $templog | (cd "$outdir" ; tar xf -) || Die "Cannot copy $incoming to $outdir - did you run out of disk space?" $templog 306 306 else 307 307 tdir=`dirname "$incoming"` … … 651 651 LogIt "ERROR: Cannot find mondo*restore in mondo's tempdir, $MINDI_TMP" 652 652 LogIt " I bet you've got a spare copy of Mondo or Mindi floating around on your system." 653 LogIt " If Mindi was called by Mondo then send me a bug report."653 LogIt " If Mindi was called by Mondo then send me a bug report." 654 654 LogIt " It not, type 'ps ax' to see which Mondo-related process is still running then kill it. :-)" 655 655 LogIt " Finally, run Mindi again." … … 2494 2494 rm -f $MINDI_TMP/minimal.lis $MINDI_TMP/minimal2.lis 2495 2495 2496 #tar cf - $finallist 2> >$templog | tar xf - || LogIt "WARNING: Problem in minimal analysis" $templog2496 #tar cf - $finallist 2> $templog | tar xf - || LogIt "WARNING: Problem in minimal analysis" $templog 2497 2497 echo "INFO: Copy the minimal env with cp -a --parents $finallist -t $mountpoint" 2>&1 >> $templog 2498 cp -a --parents $finallist -t $mountpoint 2> >$templog || LogIt "WARNING: Problem in minimal analysis" $templog2498 cp -a --parents $finallist -t $mountpoint 2> $templog || LogIt "WARNING: Problem in minimal analysis" $templog 2499 2499 2500 2500 # In case target /bin dir still doesn't exist, create it before using it … … 2510 2510 # To improve support for distribution scripts, we now prefer to use bash as the std shell. Also fixes #600 2511 2511 ln -sf /bin/bash bin/sh 2512 Log It"INFO: Using bash as default shell"2512 LogFile "INFO: Using bash as default shell" 2513 2513 2514 2514 # Avoids an issue on some distro (RHEL5) … … 2520 2520 if [ $? -eq 0 ]; then 2521 2521 echo "udev device manager found" > $mountpoint/tmp/USE-UDEV 2522 Log It"INFO: udev device manager found"2523 tar cf - -C / /etc/udev 2> >$templog | tar xf - || LogIt "ERROR: Problem in /etc/udev analysis" $templog2522 LogFile "INFO: udev device manager found" 2523 tar cf - -C / /etc/udev 2> $templog | tar xf - || LogIt "ERROR: Problem in /etc/udev analysis" $templog 2524 2524 # This avoids NIC remapping if on another machine at restore time on Debian/Ubuntu at least 2525 2525 rm -f ./etc/udev/rules.d/[z]*[0-9][0-9][-_]persistent-net.rules 2526 2526 # Do not do it if it's a link (Ubuntu 64 bits #503) 2527 2527 if [ -e "/lib64/udev" ] && [ ! -h "/lib64" ] && [ ! -h "/lib64/udev" ]; then 2528 tar cf - -C / /lib64/udev 2> >$templog | tar xf - || LogIt "ERROR: Problem in /lib64/udev analysis" $templog2528 tar cf - -C / /lib64/udev 2> $templog | tar xf - || LogIt "ERROR: Problem in /lib64/udev analysis" $templog 2529 2529 fi 2530 2530 if [ -e "/lib32/udev" ] && [ ! -h "/lib32" ] && [ ! -h "/lib32/udev" ]; then 2531 tar cf - -C / /lib32/udev 2> >$templog | tar xf - || LogIt "ERROR: Problem in /lib32/udev analysis" $templog2531 tar cf - -C / /lib32/udev 2> $templog | tar xf - || LogIt "ERROR: Problem in /lib32/udev analysis" $templog 2532 2532 fi 2533 2533 if [ -e "/lib/udev" ] && [ ! -h "/lib" ] && [ ! -h "/lib/udev" ]; then 2534 tar cf - -C / /lib/udev 2> >$templog | tar xf - || LogIt "ERROR: Problem in /lib/udev analysis" $templog2534 tar cf - -C / /lib/udev 2> $templog | tar xf - || LogIt "ERROR: Problem in /lib/udev analysis" $templog 2535 2535 fi 2536 2536 if [ -e "/usr/lib/udev" ] && [ ! -h "/usr/lib" ] && [ ! -h "/usr/lib/udev" ]; then 2537 tar cf - -C / /usr/lib/udev 2> >$templog | tar xf - || LogIt "ERROR: Problem in /usr/lib/udev analysis" $templog2537 tar cf - -C / /usr/lib/udev 2> $templog | tar xf - || LogIt "ERROR: Problem in /usr/lib/udev analysis" $templog 2538 2538 fi 2539 2539 if [ -x /sbin/udevd ] || [ -x /usr/bin/udevd ] || [ -x /usr/lib/systemd/systemd-udevd ]; then … … 2575 2575 fi 2576 2576 done 2577 #tar cf - -C / $lis `sort -u $MINDI_TMP/udev.lis` 2> >$templog | tar xf - || LogIt "ERROR: Problem in udev.lis analysis" $templog2577 #tar cf - -C / $lis `sort -u $MINDI_TMP/udev.lis` 2> $templog | tar xf - || LogIt "ERROR: Problem in udev.lis analysis" $templog 2578 2578 echo "INFO: Copying udev related files with cp -a --parents $finallist -t $mountpoint/" 2>&1 >> $templog 2579 cp -a --parents $finallist -t $mountpoint/ 2> >$templog || LogIt "ERROR: Problem in udev.lis analysis" $templog2579 cp -a --parents $finallist -t $mountpoint/ 2> $templog || LogIt "ERROR: Problem in udev.lis analysis" $templog 2580 2580 rm -f $MINDI_TMP/udev.lis 2581 2581 else … … 2595 2595 lis=`grep -Ev '^#' $MINDI_CACHE/tools.files` 2596 2596 LocateDeps $lis > $MINDI_TMP/tools.lis 2597 tar cf - $lis `sort -u $MINDI_TMP/tools.lis` 2> >$templog | tar xf - || LogIt "ERROR: Problem in tools.lis analysis" $templog2597 tar cf - $lis `sort -u $MINDI_TMP/tools.lis` 2> $templog | tar xf - || LogIt "ERROR: Problem in tools.lis analysis" $templog 2598 2598 fi 2599 2599 if [ -f $MINDI_CACHE/mindi-rsthw ]; then … … 2606 2606 # Management of perl scripts delivered needed at restore time 2607 2607 LogIt "INFO: Analyzing perl modules dependencies" 2608 mindi-get-perl-modules `cat $MINDI_CONF/perl-scripts` /usr/[s]*bin/mr-* 2> >$templog > $MINDI_TMP/perl.lis || LogIt "ERROR: Problem in mindi-get-perl-modules" $templog2609 Log It"DBG4: Perl Modules found:"2610 Log It"-------------------------"2608 mindi-get-perl-modules `cat $MINDI_CONF/perl-scripts` /usr/[s]*bin/mr-* 2> $templog > $MINDI_TMP/perl.lis || LogIt "ERROR: Problem in mindi-get-perl-modules" $templog 2609 LogFile "DBG4: Perl Modules found:" 2610 LogFile "-------------------------" 2611 2611 cat $MINDI_TMP/perl.lis >> $LOGFILE 2612 Log It"-------------------------"2613 tar cf - `cat $MINDI_TMP/perl.lis` 2> >$templog | tar xf - || LogIt "ERROR: Problem in perl scripts analysis" $templog2612 LogFile "-------------------------" 2613 tar cf - `cat $MINDI_TMP/perl.lis` 2> $templog | tar xf - || LogIt "ERROR: Problem in perl scripts analysis" $templog 2614 2614 2615 2615 for w in cdrom groovy-stuff ; do … … 2617 2617 done 2618 2618 2619 tar cf - -C / /dev/fd0*[1,2][4,7,8]* 2> >$templog | tar xf - || LogIt "ERROR: Problem in fd dev analysis" $templog2619 tar cf - -C / /dev/fd0*[1,2][4,7,8]* 2> $templog | tar xf - || LogIt "ERROR: Problem in fd dev analysis" $templog 2620 2620 2621 2621 echo -en "..." … … 2646 2646 2647 2647 LogFile "INFO: Adding $needed_modules to the rootfs with $mkgmopt" 2648 cp --parents -aL $needed_modules $mountpoint/ 2> >$templog || LogIt "ERROR: Unable to copy modules to $mountpoint" $templog2648 cp --parents -aL $needed_modules $mountpoint/ 2> $templog || LogIt "ERROR: Unable to copy modules to $mountpoint" $templog 2649 2649 2650 2650 # Uncompress modules if not using udev and native modprobe … … 2665 2665 2666 2666 # Also copy modules.* in case of udev so that normal modprobe works 2667 tar cf - -C / /$needed_modules_path/modules.* 2> >$templog | (cd "$mountpoint" ; tar xf -) || LogIt "ERROR: Unable to copy modules.* to $mountpoint" $templog2667 tar cf - -C / /$needed_modules_path/modules.* 2> $templog | (cd "$mountpoint" ; tar xf -) || LogIt "ERROR: Unable to copy modules.* to $mountpoint" $templog 2668 2668 2669 2669 # Copy FW in case some drivers needs it … … 2697 2697 lis="/usr/bin/sg_map /usr/bin/sg_inq /usr/bin/sg_reset /usr/bin/rev" 2698 2698 LocateDeps $lis > $MINDI_TMP/obdr.lis 2699 (cd $mountpoint ; tar cf - $lis -C / `sort -u $MINDI_TMP/obdr.lis` 2> >$templog | tar xf - || LogIt "ERROR: Problem in obdr.lis analysis" $templog)2699 (cd $mountpoint ; tar cf - $lis -C / `sort -u $MINDI_TMP/obdr.lis` 2> $templog | tar xf - || LogIt "ERROR: Problem in obdr.lis analysis" $templog) 2700 2700 LogIt "INFO: Copying /usr/bin/sg_reset to ramdisk for improved SCSI OBDR support" 2701 2701 found=1 … … 3337 3337 LogIt "INFO: Your $MRCFG file is:" 3338 3338 LogIt "--------------------------" 3339 cat $MINDI_TMP/$MRCFG >>$LOGFILE3339 cat $MINDI_TMP/$MRCFG | tee -a $LOGFILE 3340 3340 LogIt "--------------------------" 3341 3341 else
Note:
See TracChangeset
for help on using the changeset viewer.