Changeset 3544 in MondoRescue for branches/3.2/mondo


Ignore:
Timestamp:
Mar 24, 2016, 8:34:03 PM (8 years ago)
Author:
Bruno Cornec
Message:

i- The cal to unmount_all_devices copies the log file on to the disk, so after all new log info such as labelling are not copied and thus should be considered on the restored system directly.

Location:
branches/3.2/mondo/src/mondorestore
Files:
2 edited

Legend:

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

    r3542 r3544  
    19201920    sync();
    19211921
     1922    /* after that what is logged is not copied on disk, typically the result of labelling */
    19221923    mr_asprintf(tmp, "cp -f %s " MNT_RESTORING "/var/log", MONDO_LOGFILE);
    19231924    if (run_program_and_log_output(tmp, FALSE)) {
  • branches/3.2/mondo/src/mondorestore/mondorestore.c

    r3542 r3544  
    20382038    /*  if (restore_some || restore_all || */
    20392039    if (ask_me_yes_or_no("Label/Identify your ext2/ext3/ext4 partitions if necessary?")) {
    2040         mvaddstr_and_log_it(g_currentY, 0,
    2041                             "Using tune2fs/tune4fs to identify your ext2,3,4 partitions");
     2040        mvaddstr_and_log_it(g_currentY, 0, "Using tune2fs/tune4fs to identify your ext2,3,4 partitions");
    20422041        if (does_file_exist("/tmp/fstab.new")) {
    20432042            mr_asprintf(fstab_fname, "/tmp/fstab.new");
     
    21892188    protect_against_braindead_sysadmins();
    21902189    retval += unmount_all_devices(mountlist);
     2190    /*  No log content will be copied on disk after that call */
    21912191    mvaddstr_and_log_it(g_currentY, 0, "Using tune2fs/tune4fs to identify your ext2,3,4 partitions");
    21922192
     
    21952195    mr_free(tmp1);
    21962196    if (res) {
    2197         log_to_screen("mr-label-partitions-as-necessary returned an error");
     2197        log_to_screen("mr-label-partitions-as-necessary returned an error\nNote that these erros are NOT in the copy of the log file on disk");
    21982198        mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
    21992199    } else {
Note: See TracChangeset for help on using the changeset viewer.