Changeset 3502 in MondoRescue for branches/3.2/mondo/src/common


Ignore:
Timestamp:
Feb 9, 2016, 2:34:54 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for xorriso for UEFI distributions using it such as Debian 8
Location:
branches/3.2/mondo/src/common
Files:
2 edited

Legend:

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

    r3499 r3502  
    17051705        mr_asprintf(result_sz, "Call to mkisofs to make ISO (%s #%d) ", mds,  g_current_media_number);
    17061706        mr_free(mds);
    1707         if (find_home_of_exe("genisoimage")) {
     1707        if (find_home_of_exe("xorriso")) {
     1708            mr_asprintf(isofs_cmd, "%s", MONDO_XORRISO_CMD);
     1709        else if (find_home_of_exe("genisoimage")) {
    17081710            mr_asprintf(isofs_cmd, "%s", MONDO_GENISOIMAGE_CMD);
    17091711        } else {
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3500 r3502  
    481481            fatal_error("Please install either cdrecord or dvdrecord.");
    482482        }
    483         if (find_home_of_exe("genisoimage")) {
     483        if (find_home_of_exe("xorriso")) {
     484            mr_asprintf(isofs_cmd, "%s", MONDO_XORRISO_CMD);
     485        else if (find_home_of_exe("genisoimage")) {
    484486            mr_asprintf(isofs_cmd, "%s", MONDO_GENISOIMAGE_CMD);
    485487        } else {
     
    934936#endif
    935937    retval += whine_if_not_found(MKE2FS_OR_NEWFS);
    936     if (system("which genisoimage > /dev/null 2> /dev/null")) {
    937         retval += whine_if_not_found("mkisofs");
     938    if (system("which xorriso > /dev/null 2> /dev/null")) {
     939        if (system("which genisoimage > /dev/null 2> /dev/null")) {
     940            retval += whine_if_not_found("mkisofs");
     941        }
    938942    }
    939943    if (system("which wodim > /dev/null 2> /dev/null")) {
Note: See TracChangeset for help on using the changeset viewer.