Changeset 2289


Ignore:
Timestamp:
Jul 22, 2009, 1:59:08 PM (10 years ago)
Author:
bruno
Message:
  • Remove the useless payload feature
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-files.c

    r2273 r2289  
    10371037/**
    10381038 * Copy the files that Mondo/Mindi need to run to the scratchdir or tempdir.
    1039  * Currently this includes: copy Mondo's home directory to scratchdir, untar "mondo_home/payload.tgz"
    1040  * if it exists, copy LAST-FILELIST-NUMBER to scratchdir, copy mondorestore
     1039 * Currently this includes: copy Mondo's home directory to scratchdir,
     1040 * copy LAST-FILELIST-NUMBER to scratchdir, copy mondorestore
    10411041 * and post-nuke.tgz (if it exists) to tmpdir, and run "hostname > scratchdir/HOSTNAME".
    10421042 * @param bkpinfo The backup information structure. Fields used:
     
    10691069    if (res) {
    10701070        fatal_error("Failed to copy Mondo's stuff to scratchdir");
    1071     }
    1072 
    1073     sprintf(tmp, "%s/payload.tgz", g_mondo_home);
    1074     if (does_file_exist(tmp)) {
    1075         log_it("Untarring payload %s to scratchdir %s", tmp,
    1076                bkpinfo->scratchdir);
    1077         (void) getcwd(old_pwd, MAX_STR_LEN - 1);
    1078         chdir(bkpinfo->scratchdir);
    1079         mr_asprintf(&command, "tar -zxvf %s", tmp);
    1080         res = run_program_and_log_output(command, FALSE);
    1081         mr_free(command);
    1082 
    1083         if (res) {
    1084             fatal_error("Failed to untar payload");
    1085         }
    1086         chdir(old_pwd);
    10871071    }
    10881072
Note: See TracChangeset for help on using the changeset viewer.