Ignore:
Timestamp:
May 29, 2008, 5:40:05 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Remove all references to /root/images
  • Fix the lack of support for options in mondorestore by copying what is done for mondoarchive and sharing the functions analyzing the cli (getopt usage)
  • Review the now common handle_incoming_parameters to have it support correctly 2 modes (archiving and restoring)
  • Update mondorestore man page to take in account the options supported now
  • Replace mondorestore options --nuke, --interactive, with -Z nuke, -Z interactive ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.6/mondo/src/common/libmondo-tools.c

    r1966 r1967  
    806806
    807807void setup_tmpdir(char *path) {
    808    
     808
    809809    char *tmp = NULL;
    810810    char *p = NULL;
     
    816816        paranoid_free(tmp);
    817817    }
    818        
     818
    819819    if (path != NULL) {
    820820        asprintf(&tmp, "%s/mondo.tmp.XXXXXX", path);
     
    871871        strcpy(bkpinfo->isodir, "/");
    872872    } else {
    873         strcpy(bkpinfo->isodir, "/root/images/mondo");
     873        strcpy(bkpinfo->isodir, "/var/cache/mondo");
    874874    }
    875875    strcpy(bkpinfo->prefix, STD_PREFIX);
     
    898898    bkpinfo->make_cd_use_lilo = FALSE;
    899899    bkpinfo->use_obdr = FALSE;
     900    bkpinfo->restore_mode = interactive;
    900901}
    901902
Note: See TracChangeset for help on using the changeset viewer.