Changeset 1326 in MondoRescue for branches/stable/mindi


Ignore:
Timestamp:
Apr 17, 2007, 12:08:14 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • MONDO_LOGFILE is rather a char* exported by each main program (consolidation of those mecanisms in .h files with ps_*)
  • One include has been created for each binary containing only the specific declarations
  • Log files are now consistent: mondoarchive.log for mondoarchive (containing also mindi.log) and mondorestore.log for mondorestore (copied from /tmp (ram) to /var/log (disk) at the end of the restore)
  • Doc updated accordingly
  • LOGFILE in restore process is now passed in the environment and not duplicated a nymore
  • LogIt is not redifined either
  • LOGFILE should be put in environment by mondoarchive for mindi's usage but that's a step left for later.
  • label-partitions-as-necessary should now work correctly for LABEL and UUID (grep -w removed)
  • Remove useless script compare-me

(All coming from 2.2.2) (remains changes in my-stuff.h coming later on)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1312 r1326  
    426426    echo "Mindi $MINDI_VERSION is exiting" >> $LOGFILE
    427427    echo "End date : `date`" >> $LOGFILE
     428    if [ "`DidMondoCallMe`" ] ; then
     429        cat $LOGFILE >> /var/log/mondoarchive.log
     430    fi
    428431
    429432    sync
     
    448451    fi
    449452
    450     # Creates a tar file containing all required files
    451     for i in $MY_FSTAB /etc/lilo.conf /etc/raidtab $LOGFILE /var/log/mondo-archive.log ; do
    452         [ -e "$i" ] && cp -f $i $MINDI_TMP 2>> $LOGFILE
    453     done
    454     rm -f $TMPDIR/mindi.err.*.tgz
    455     tar -cf - $MINDI_TMP | gzip -9 > $TMPDIR/mindi.err.$$.tgz
    456     LogIt "Please e-mail a copy of $TMPDIR/mindi.err.$$.tgz to the mailing list."
     453    LogIt "Please e-mail a copy of $LOGFILE to the mailing list."
    457454    LogIt "See http://www.mondorescue.org for more information."
    458455    LogIt "WE CANNOT HELP unless you enclose that file.\n"
     
    30283025mount >> $LOGFILE
    30293026echo "-------------" >> $LOGFILE
     3027if [ -e /etc/raidtab ]; then
     3028    echo "-------------" >> $LOGFILE
     3029    echo "/etc/raidtab content:" >> $LOGFILE
     3030    echo "-------------" >> $LOGFILE
     3031    cat /etc/raidtab >> $LOGFILE
     3032fi
     3033echo "-------------" >> $LOGFILE
    30303034echo "lsmod result:" >> $LOGFILE
    30313035echo "-------------" >> $LOGFILE
     
    31823186    LogIt "BusyBox sources are available from http://www.busybox.net"
    31833187else
    3184     echo "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" >> /var/log/mondo-archive.log
     3188    echo "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" >> $LOGFILE
    31853189fi
    31863190if [ -f $MINDI_LIB/rootfs/bin/busybox ]; then
Note: See TracChangeset for help on using the changeset viewer.