Changeset 1913 in MondoRescue for branches/2.2.6/mondo
- Timestamp:
- Apr 14, 2008, 2:48:40 PM (17 years ago)
- Location:
- branches/2.2.6/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-stream.c
r1899 r1913 796 796 (void) getcwd(old_cwd, MAX_STR_LEN); 797 797 chdir(bkpinfo->tmpdir); 798 sprintf(tmp, "tar -zxf %s tmp/mondo-restore.cfg 2> /dev/null",798 sprintf(tmp, "tar -zxf %s ./tmp/mondo-restore.cfg 2> /dev/null", 799 799 outfname); 800 800 paranoid_system(tmp); -
branches/2.2.6/mondo/src/common/my-stuff.h
r1885 r1913 215 215 * The biggielist stub (appended to the directory where all.tar.gz was unpacked). 216 216 */ 217 #define BIGGIELIST_TXT_STUB " tmp/biggielist.txt"217 #define BIGGIELIST_TXT_STUB "./tmp/biggielist.txt" 218 218 219 219 /** 220 220 * The filelist stub (appended to the directory where all.tar.gz was unpacked). 221 221 */ 222 #define FILELIST_FULL_STUB " tmp/filelist.full.gz"222 #define FILELIST_FULL_STUB "./tmp/filelist.full.gz" 223 223 224 224 /** 225 225 * The mountlist stub (appended to the directory where all.tar.gz was unpacked). 226 226 */ 227 #define MOUNTLIST_FNAME_STUB " tmp/mountlist.txt"227 #define MOUNTLIST_FNAME_STUB "./tmp/mountlist.txt" 228 228 229 229 /** 230 230 * The mondo-restore.cfg stub (appended to the directory where all.tar.gz was unpacked). 231 231 */ 232 #define MONDO_CFG_FILE_STUB " tmp/mondo-restore.cfg"232 #define MONDO_CFG_FILE_STUB "./tmp/mondo-restore.cfg" 233 233 /** 234 234 * The location where mindi media images are stored. -
branches/2.2.6/mondo/src/mondorestore/mondo-restore.c
r1902 r1913 2777 2777 paranoid_fclose(fout); 2778 2778 sprintf(command, 2779 "tar -zxvf %s tmp/mondo-restore.cfg tmp/mountlist.txt tmp/filelist.fulltmp/biggielist.txt",2779 "tar -zxvf %s ./tmp/mondo-restore.cfg ./tmp/mountlist.txt ./tmp/filelist.full ./tmp/biggielist.txt", 2780 2780 datadisks_fname); 2781 2781 run_program_and_log_output(command, 4); -
branches/2.2.6/mondo/src/mondorestore/mondo-rstr-tools.c
r1909 r1913 1288 1288 BIGGIELIST_TXT_STUB, 1289 1289 FILELIST_FULL_STUB, 1290 " tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB);1290 "./tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB); 1291 1291 log_msg(1, "tarcommand = %s", command); 1292 1292 run_program_and_log_output(command, 1); … … 1304 1304 BIGGIELIST_TXT_STUB, 1305 1305 FILELIST_FULL_STUB, 1306 " tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB);1306 "./tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB); 1307 1307 1308 1308 log_msg(1, "tarcommand = %s", command); … … 1311 1311 if (!does_file_exist(BIGGIELIST_TXT_STUB)) { 1312 1312 fatal_error 1313 ("all.tar.gz did not include tmp/biggielist.txt");1313 ("all.tar.gz did not include ./tmp/biggielist.txt"); 1314 1314 } 1315 1315 if (!does_file_exist(FILELIST_FULL_STUB)) { 1316 1316 fatal_error 1317 ("all.tar.gz did not include tmp/filelist.full.gz");1317 ("all.tar.gz did not include ./tmp/filelist.full.gz"); 1318 1318 } 1319 1319 } … … 2278 2278 1024L * 1024 * 32 / tape_block_size, 2279 2279 MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, 2280 BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, " tmp/i-want-my-lvm");2280 BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, "./tmp/i-want-my-lvm"); 2281 2281 log_msg(2, "command = '%s'", command); 2282 2282 res = run_program_and_log_output(command, -1); … … 2407 2407 log_msg(2, 2408 2408 "gcffa --- Plan B, a.k.a. untarring some file from all.tar.gz"); 2409 sprintf(command, "tar -zxvf " MNT_CDROM "/images/all.tar.gz %s %s %s %s %s", MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, " tmp/i-want-my-lvm"); // add -b TAPE_BLOCK_SIZE if you _really_ think it's necessary2409 sprintf(command, "tar -zxvf " MNT_CDROM "/images/all.tar.gz %s %s %s %s %s", MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, "./tmp/i-want-my-lvm"); // add -b TAPE_BLOCK_SIZE if you _really_ think it's necessary 2410 2410 run_program_and_log_output(command, TRUE); 2411 2411 if (!does_file_exist(MONDO_CFG_FILE_STUB)) {
Note:
See TracChangeset
for help on using the changeset viewer.