Ignore:
Timestamp:
Oct 21, 2007, 3:06:22 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Remove useless copy from mindi to mondo at end of USB handling
  • Fix PB macro vs tools/*2build issue
  • make_usb_fs change of interface (doesn't need a parameter)
  • Fix USB support in mondo to avoid multiple copies of files
  • Use first partiion in mondo for USB device
  • Fixes for USB CLI for both mondo/mindi
  • Try to add USB support for mondoarchive with new functions
  • du => deb for similarity with other distro type under pbconf
  • migrate gento build files under pb
  • remove now obsolete rpm spec file and gentoo build files from distributions
  • Remove DOCDIR usage in mindi + various build fixes

(merge -r1680:1692 $SVN_M/branches/2.2.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-fork.c

    r1663 r1693  
    179179
    180180/**
     181 * Call copy of data to create an USB image.
     182 * @param bkpinfo The backup information structure. Fields used:
     183 * - @c bkpinfo->backup_media_type
     184 * @return Exit code of @c copy (0 is success, anything else indicates failure).
     185 */
     186int
     187eval_call_to_make_USB(char *command, char *what_i_am_doing) {
     188
     189    /*@ int's  *** */
     190    int retval = 0;
     191
     192
     193/*@***********   End Variables ***************************************/
     194
     195    log_msg(3, "Starting");
     196    assert(bkpinfo != NULL);
     197
     198    log_to_screen
     199        ("Please be patient. Do not be alarmed by on-screen inactivity.");
     200    log_msg(4, "Calling open_evalcall_form() with what_i_am_doing='%s'",
     201            what_i_am_doing);
     202
     203    if (!g_text_mode) {
     204        newtSuspend();
     205    }
     206    log_msg(1, "command = '%s'", command);
     207    if (!g_text_mode) {
     208        retval = run_external_binary_with_percentage_indicator_NEW
     209            (what_i_am_doing, command);
     210    } else {
     211        retval += system(command);
     212    }
     213    if (!g_text_mode) {
     214        newtResume();
     215    }
     216
     217    return (retval);
     218}
     219
     220
     221
     222
     223/**
    181224 * Run a program and log its output (stdout and stderr) to the logfile.
    182225 * @param program The program to run. Passed to the shell, so you can use pipes etc.
Note: See TracChangeset for help on using the changeset viewer.