Changeset 1913 in MondoRescue for branches/2.2.6/mondo


Ignore:
Timestamp:
Apr 14, 2008, 2:48:40 PM (16 years ago)
Author:
Bruno Cornec
Message:

Extract of mandatory files is now under ./tmp/.. instead of tmp/.. as we now use ar to create the all.tar.gz

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  
    796796    (void) getcwd(old_cwd, MAX_STR_LEN);
    797797    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",
    799799            outfname);
    800800    paranoid_system(tmp);
  • branches/2.2.6/mondo/src/common/my-stuff.h

    r1885 r1913  
    215215 * The biggielist stub (appended to the directory where all.tar.gz was unpacked).
    216216 */
    217 #define BIGGIELIST_TXT_STUB "tmp/biggielist.txt"
     217#define BIGGIELIST_TXT_STUB "./tmp/biggielist.txt"
    218218
    219219/**
    220220 * The filelist stub (appended to the directory where all.tar.gz was unpacked).
    221221 */
    222 #define FILELIST_FULL_STUB "tmp/filelist.full.gz"
     222#define FILELIST_FULL_STUB "./tmp/filelist.full.gz"
    223223
    224224/**
    225225 * The mountlist stub (appended to the directory where all.tar.gz was unpacked).
    226226 */
    227 #define MOUNTLIST_FNAME_STUB "tmp/mountlist.txt"
     227#define MOUNTLIST_FNAME_STUB "./tmp/mountlist.txt"
    228228
    229229/**
    230230 * The mondo-restore.cfg stub (appended to the directory where all.tar.gz was unpacked).
    231231 */
    232 #define MONDO_CFG_FILE_STUB "tmp/mondo-restore.cfg"
     232#define MONDO_CFG_FILE_STUB "./tmp/mondo-restore.cfg"
    233233/**
    234234 * The location where mindi media images are stored.
  • branches/2.2.6/mondo/src/mondorestore/mondo-restore.c

    r1902 r1913  
    27772777    paranoid_fclose(fout);
    27782778    sprintf(command,
    2779             "tar -zxvf %s tmp/mondo-restore.cfg tmp/mountlist.txt tmp/filelist.full tmp/biggielist.txt",
     2779            "tar -zxvf %s ./tmp/mondo-restore.cfg ./tmp/mountlist.txt ./tmp/filelist.full ./tmp/biggielist.txt",
    27802780            datadisks_fname);
    27812781    run_program_and_log_output(command, 4);
  • branches/2.2.6/mondo/src/mondorestore/mondo-rstr-tools.c

    r1909 r1913  
    12881288            BIGGIELIST_TXT_STUB,
    12891289            FILELIST_FULL_STUB,
    1290             "tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB);
     1290            "./tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB);
    12911291    log_msg(1, "tarcommand = %s", command);
    12921292    run_program_and_log_output(command, 1);
     
    13041304            BIGGIELIST_TXT_STUB,
    13051305            FILELIST_FULL_STUB,
    1306             "tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB);
     1306            "./tmp/i-want-my-lvm", MONDO_CFG_FILE_STUB);
    13071307
    13081308    log_msg(1, "tarcommand = %s", command);
     
    13111311    if (!does_file_exist(BIGGIELIST_TXT_STUB)) {
    13121312        fatal_error
    1313             ("all.tar.gz did not include tmp/biggielist.txt");
     1313            ("all.tar.gz did not include ./tmp/biggielist.txt");
    13141314    }
    13151315    if (!does_file_exist(FILELIST_FULL_STUB)) {
    13161316        fatal_error
    1317             ("all.tar.gz did not include tmp/filelist.full.gz");
     1317            ("all.tar.gz did not include ./tmp/filelist.full.gz");
    13181318    }
    13191319}
     
    22782278            1024L * 1024 * 32 / tape_block_size,
    22792279            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");
    22812281    log_msg(2, "command = '%s'", command);
    22822282    res = run_program_and_log_output(command, -1);
     
    24072407                log_msg(2,
    24082408                        "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 necessary
     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 necessary
    24102410                run_program_and_log_output(command, TRUE);
    24112411                if (!does_file_exist(MONDO_CFG_FILE_STUB)) {
Note: See TracChangeset for help on using the changeset viewer.