Ignore:
Timestamp:
May 27, 2014, 5:53:14 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Remove from mindi 2 functions replaced by perl code (ReadAllLink by mr-read-all-link and ProcessLDD by mr-process-ldd)
  • Redirect mindi execution to mondo log on the fly to try to improve percentage display with newt (not finished yet)
  • Introduce a new global var MINDI_LOGFILE and use it everywhere
  • Fix some memory free mising (thanks valgrind)
  • Remove a call to rpm to log packages - not portable
  • Works with valgrind locally to create images in dir
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-archive.c

    r3288 r3292  
    843843    mr_asprintf(command, "mindi %s --custom %s %s/images '%s' '%s' \
    844844'%s' %ld '%s' '%s' '%s' \
    845 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s'", tmp2, bkpinfo->tmpdir,    // parameter #2
     845'%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s' 2>&1 > %s", tmp2, bkpinfo->tmpdir,  // parameter #2
    846846            bkpinfo->scratchdir,    // parameter #3
    847847            bkpinfo->kernel_path,   // parameter #4
     
    864864            use_lzma_sz,        // parameter #20 (STRING)
    865865            value,              // parameter #21 (STRING)
     866            MONDO_LOGFILE,      // redirect to log file
    866867            MONDO_LOGFILE);
    867868
     
    888889//  popup_and_OK("Pausing");
    889890
    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
    891895    update_evalcall_form(99);
     896    */
    892897    paranoid_free(command);
    893898
     
    929934    } else {
    930935        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);
    932937        mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command));
    933938        mr_free(command);
     
    16381643        mr_free(tmp3);
    16391644    }
     1645    mr_free(tmp);
    16401646    mr_free(tmp2);
    16411647    mr_free(tmp3);
Note: See TracChangeset for help on using the changeset viewer.