Changeset 2601 in MondoRescue
- Timestamp:
- Mar 22, 2010, 1:56:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-archive.c
r2598 r2601 844 844 mr_free(command); 845 845 846 if (bkpinfo->nonbootable_backup) { 847 mr_asprintf(command, "cp -f %s/all.tar.gz %s/images", bkpinfo->tmpdir, bkpinfo->scratchdir); 848 if (system(command)) { 849 mr_free(command); 850 fatal_error("Unable to create temporary all tarball"); 851 } 846 mr_asprintf(command, "cp -f /%s/all.tar.gz %s/images", MINDI_CACHE_REL, bkpinfo->scratchdir); 847 if (system(command)) { 852 848 mr_free(command); 853 } 849 fatal_error("Unable to create temporary all tarball"); 850 } 851 mr_free(command); 852 854 853 /* For USB we already have everything on the key */ 855 854 if (bkpinfo->backup_media_type == usb) { … … 857 856 run_program_and_log_output(command, FALSE); 858 857 mr_free(command); 859 } else {860 mr_asprintf(tmp, "cp -f /%s/all.tar.gz %s", MINDI_CACHE_REL, bkpinfo->tmpdir);861 if (system(tmp)) {862 mr_free(tmp);863 fatal_error("Cannot find all.tar.gz in tmpdir");864 }865 mr_free(tmp);866 858 } 867 859 if (res) { … … 1130 1122 1131 1123 assert(bkpinfo != NULL); 1132 mr_asprintf(data_disks_file, " %s/all.tar.gz", bkpinfo->tmpdir);1124 mr_asprintf(data_disks_file, "/%s/all.tar.gz", MINDI_CACHE_REL); 1133 1125 1134 1126 g_serial_string = call_program_and_get_last_line_of_output("dd if=/dev/urandom bs=16 count=1 2> /dev/null | hexdump | tr -s ' ' '0' | head -n1");
Note:
See TracChangeset
for help on using the changeset viewer.