Ignore:
Timestamp:
Apr 16, 2007, 4:13:59 PM (12 years ago)
Author:
bruno
Message:

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)
One include has been created for each bianry containing only that declaration ofr the moment, but which will be extended to include all local definitions (ps_* e.g.)
Doc updated accordingly
LOGFILE in restore process is now passed in the environment and not duplicated anymore
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.2/mondo/src/mondorestore/mondo-rstr-tools.c

    r1242 r1315  
    17271727        mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
    17281728        log_to_screen
    1729             ("GRUB ran w/error(s). See /tmp/mondo-restore.log for more info.");
     1729            ("GRUB ran w/error(s). See %s for more info.", MONDO_LOGFILE);
    17301730        log_msg(1, "Type:-");
    17311731        log_msg(1, "    mount-me");
     
    20032003        mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
    20042004        log_to_screen
    2005             ("MBR+fstab processed w/error(s). See /tmp/mondo-restore.log for more info.");
     2005            ("MBR+fstab processed w/error(s). See %s for more info.", MONDO_LOGFILE);
    20062006    } else {
    20072007        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     
    22482248
    22492249    if (run_program_and_log_output
    2250         ("cp -f /tmp/mondo-restore.log " MNT_RESTORING "/tmp/", FALSE)) {
     2250        ("cp -f " MONDO_LOGFILE " " MNT_RESTORING "/var/log", FALSE)) {
    22512251        log_msg(1,
    2252                 "Error. Failed to copy log to PC's /tmp dir. (Mounted read-only?)");
    2253     }
    2254     if (run_program_and_log_output
    2255         ("cp -f /tmp/mondo-restore.log " MNT_RESTORING "/root/", FALSE)) {
    2256         log_msg(1,
    2257                 "Error. Failed to copy log to PC's /root dir. (Mounted read-only?)");
     2252                "Error. Failed to copy log to PC's /var/log dir. (Mounted read-only?)");
    22582253    }
    22592254    if (does_file_exist("/tmp/DUMBASS-GENTOO")) {
Note: See TracChangeset for help on using the changeset viewer.