Changeset 3292 in MondoRescue for branches/3.2/mondo/src/common
- Timestamp:
- May 27, 2014, 5:53:14 PM (11 years ago)
- Location:
- branches/3.2/mondo/src/common
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-archive.c
r3288 r3292 843 843 mr_asprintf(command, "mindi %s --custom %s %s/images '%s' '%s' \ 844 844 '%s' %ld '%s' '%s' '%s' \ 845 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s' ", tmp2, bkpinfo->tmpdir, // parameter #2845 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s' 2>&1 > %s", tmp2, bkpinfo->tmpdir, // parameter #2 846 846 bkpinfo->scratchdir, // parameter #3 847 847 bkpinfo->kernel_path, // parameter #4 … … 864 864 use_lzma_sz, // parameter #20 (STRING) 865 865 value, // parameter #21 (STRING) 866 MONDO_LOGFILE, // redirect to log file 866 867 MONDO_LOGFILE); 867 868 … … 888 889 // popup_and_OK("Pausing"); 889 890 890 res = run_program_and_log_output(command, FALSE); 891 // BCO old call : 892 //res = run_program_and_log_output(command, FALSE); 893 res = run_external_binary_with_percentage_indicator_NEW("Calling MINDI for boot disk",command); 894 /* May crash now that we changed the call 891 895 update_evalcall_form(99); 896 */ 892 897 paranoid_free(command); 893 898 … … 929 934 } else { 930 935 log_to_screen("Mindi failed to create your boot+data disks."); 931 mr_asprintf(command, "grep 'Fatal error' /var/log/mindi.log");936 mr_asprintf(command, "grep 'Fatal error' %s", MINDI_LOGFILE); 932 937 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command)); 933 938 mr_free(command); … … 1638 1643 mr_free(tmp3); 1639 1644 } 1645 mr_free(tmp); 1640 1646 mr_free(tmp2); 1641 1647 mr_free(tmp3); -
branches/3.2/mondo/src/common/libmondo-devices.c
r3291 r3292 2176 2176 } 2177 2177 setup_scratchdir(tmp); 2178 mr_free(tmp); 2178 2179 } 2179 2180 log_msg(3, "media type = %s", bkptype_to_string(bkpinfo->backup_media_type)); -
branches/3.2/mondo/src/common/libmondo-filelist.c
r3271 r3292 390 390 } 391 391 if (filelist->down) { 392 /* if (!(i++ %39999)) { update_evalcall_form(0); } */393 392 free_filelist(filelist->down); 394 393 filelist->down = NULL; … … 1331 1330 } 1332 1331 } 1333 mr_asprintf(find_excludes, " ");1334 1332 1335 1333 if (!depth) { 1334 mr_asprintf(find_excludes, " "); 1336 1335 while((token = mr_strtok(sth, delims, &lastpos)) != NULL) { 1337 1336 mr_strcat(find_excludes," -path %s -prune -o", token); -
branches/3.2/mondo/src/common/libmondo-files.c
r3278 r3292 278 278 // If we didn't get anything back, check whether mindi raised a fatal error 279 279 if (!kernel[0]) { 280 mr_asprintf(command, " %s", "grep 'Fatal error' /var/log/mindi.log");280 mr_asprintf(command, "grep 'Fatal error' %s", MINDI_LOGFILE); 281 281 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command)); 282 282 if (strlen(tmp) > 1) { … … 284 284 mr_free(tmp); 285 285 mr_free(command); 286 fatal_error("Mindi gave a fatal error. Please check '/var/log/mindi.log'.");286 fatal_error("Mindi gave a fatal error. Please check "MINDI_LOGFILE); 287 287 } 288 288 mr_free(tmp); -
branches/3.2/mondo/src/common/libmondo-fork.c
r3205 r3292 649 649 650 650 for (sleep(1); command[0] != '\0'; sleep(1)) { 651 pcno = grab_percentage_from_last_line_of_file(MONDO_LOGFILE); 651 if (strstr(cmd,"mindi") != NULL) { 652 pcno = grab_percentage_from_last_line_of_file(MINDI_LOGFILE); 653 } else { 654 pcno = grab_percentage_from_last_line_of_file(MONDO_LOGFILE); 655 } 652 656 if (pcno < 0 || pcno > 100) { 653 657 log_msg(8, "Weird pc# %d", pcno); -
branches/3.2/mondo/src/common/libmondo-tools.c
r3278 r3292 391 391 #else 392 392 run_program_and_log_output("cat /proc/cpuinfo", 5); 393 run_program_and_log_output394 ("rpm -q newt newt-devel slang slang-devel ncurses ncurses-devel gcc",395 5);393 /* 394 run_program_and_log_output("rpm -q newt newt-devel slang slang-devel ncurses ncurses-devel gcc", 5); 395 */ 396 396 #endif 397 397 … … 985 985 log_to_screen("%s failed for some reason.", tmp); 986 986 mr_free(tmp); 987 log_to_screen("Please run that command by hand and examine /var/log/mindi.log");987 log_to_screen("Please run that command by hand and examine "MINDI_LOGFILE); 988 988 log_to_screen("for more information. Perhaps your /etc/fstab file is insane."); 989 989 log_to_screen("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see."); -
branches/3.2/mondo/src/common/newt-specific.c
r3235 r3292 420 420 mr_free(bkpinfo->exclude_devs); 421 421 mr_free(bkpinfo->exclude_paths); 422 mr_free(bkpinfo->include_paths); 422 423 mr_free(bkpinfo->subdir); 423 424 /* Then free the structure */ … … 609 610 g_isoform_scale = newtScale(3, 3, 34, 100); 610 611 newtCenteredWindow(40, 7, ttl); 612 if (g_isoform_main != NULL) { 613 newtFormDestroy(g_isoform_main); 614 } 611 615 g_isoform_main = newtForm(NULL, NULL, 0); 612 616 g_isoform_timeline = newtLabel(1, 5, " ");
Note:
See TracChangeset
for help on using the changeset viewer.