Changeset 539 in MondoRescue for trunk/mondo/mondo


Ignore:
Timestamp:
May 13, 2006, 7:38:44 PM (18 years ago)
Author:
bcornec
Message:

merge -r 534:538 $SVN_M/branches/stable

Location:
trunk/mondo/mondo
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/Makefile.am

    r507 r539  
    99libmondo_a_SOURCES  = libmondo-archive.c libmondo-devices.c libmondo-fifo.c \
    1010                       libmondo-filelist.c libmondo-files.c libmondo-fork.c \
    11                        libmondo-mountlist.c libmondo-raid.c \
     11                       libmondo-mountlist.c libmondo-raid.c libmondo-msg.c \
    1212                       libmondo-stream.c libmondo-string.c libmondo-tools.c \
    1313                       libmondo-verify.c newt-specific.c \
  • trunk/mondo/mondo/common/libmondo-archive-EXT.h

    r483 r539  
    1515extern int make_slices_and_images(struct s_bkpinfo *bkpinfo,
    1616                                  char *biggielist_fname);
    17 extern int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile);
     17extern int make_iso_fs(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, char *destfile);
    1818extern int make_afioballs_and_images(struct s_bkpinfo *bkpinfo);
    1919extern int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...);
  • trunk/mondo/mondo/common/libmondo-archive.c

    r507 r539  
    419419 * @ingroup archiveGroup
    420420 */
    421 int backup_data(struct s_bkpinfo *bkpinfo)
     421int backup_data(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf)
    422422{
    423423    int retval = 0, res = 0;
     
    485485    run_program_and_log_output(tmp, 1);
    486486    paranoid_free(tmp);
    487     retval += make_those_afios_phase(bkpinfo);  // backup regular files
    488487    retval += make_those_slices_phase(bkpinfo); // backup BIG files
    489488    retval += do_that_final_phase(bkpinfo); // clean up
     
    876875    if (!res) {
    877876        log_to_screen("Boot+data disks were created OK");
    878         asprintf(&command, "mkdir -p /root/images/mindi/");
     877        asprintf(&command, "mkdir -p /var/cache/mindi/");
    879878        log_msg(2, command);
    880879        run_program_and_log_output(command, FALSE);
     
    882881
    883882        asprintf(&command,
    884                  "cp -f %s/images/mindi.iso /root/images/mindi/mondorescue.iso",
     883                 "cp -f %s/images/mindi.iso /var/cache/mindi/mondorescue.iso",
    885884                 bkpinfo->scratchdir);
    886885        log_msg(2, command);
     
    11071106 * @ingroup MLarchiveGroup
    11081107 */
    1109 int do_that_final_phase(struct s_bkpinfo *bkpinfo)
     1108int do_that_final_phase(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf)
    11101109{
    11111110
     
    11261125    } else {
    11271126        /* write final ISO */
    1128         res = write_final_iso_if_necessary(bkpinfo);
     1127        res = write_final_iso_if_necessary(bkpinfo, mrconf);
    11291128        retval += res;
    11301129        if (res) {
     
    14061405 * @return The number of errors encountered (0 for success)
    14071406 */
    1408 int make_afioballs_and_images(struct s_bkpinfo *bkpinfo)
     1407int make_afioballs_and_images(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf)
    14091408{
    14101409
     
    15481547                                         NULL);
    15491548            } else {
    1550                 res = move_files_to_cd(bkpinfo, storing_filelist_fname,
    1551                                        curr_xattr_list_fname,
    1552                                        curr_acl_list_fname,
    1553                                        storing_afioball_fname, NULL);
     1549                res =
     1550                    move_files_to_cd(bkpinfo, mrconf, storing_filelist_fname,
     1551                                     curr_xattr_list_fname,
     1552                                     curr_acl_list_fname,
     1553                                     storing_afioball_fname, NULL);
    15541554            }
    15551555            paranoid_free(storing_filelist_fname);
     
    16281628 * @return The number of errors encountered (0 for success)
    16291629 */
    1630 int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile)
     1630int make_iso_fs(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, char *destfile)
    16311631{
    16321632    /*@ int ********************************************** */
     
    18221822#ifdef __IA64__
    18231823                log_msg(1, "IA64 --> elilo");
     1824                asprintf(&tmp2,"mkisofs -no-emul-boot -b images/mindi-bootroot.%s.img -c boot.cat -o _ISO_ -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .", mrconf->ia64_boot_size);
    18241825                res = eval_call_to_make_ISO(bkpinfo,
    1825                                             "mkisofs -no-emul-boot -b images/mindi-bootroot."
    1826                                             IA64_BOOT_SIZE
    1827                                             ".img -c boot.cat -o _ISO_ -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .",
     1826                                            tmp2,
    18281827                                            destfile,
    18291828                                            g_current_media_number,
     
    18331832// FIXME --- change mkisofs string to MONDO_MKISOFS_REGULAR_SYSLINUX/LILO depending on bkpinfo->make_cd_usE_lilo
    18341833// and add ' .' at end
     1834                paranoid_free(tmp2);
    18351835                log_msg(1, "Non-ia64 --> lilo");
    18361836                res = eval_call_to_make_ISO(bkpinfo,
     
    19561956 */
    19571957int
    1958 make_slices_and_images(struct s_bkpinfo *bkpinfo, char *biggielist_fname)
     1958make_slices_and_images(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, char *biggielist_fname)
    19591959{
    19601960
     
    20292029        } else {
    20302030            // Call ntfsclone (formerly partimagehack) if it's a /dev entry (i.e. a partition to be imaged)
    2031             log_msg(2, "bigfile_fname = %s", bigfile_fname);
     2031            log_msg(2, "bigfile_fname = '%s'", bigfile_fname);
    20322032            use_ntfsprog = FALSE;
    20332033            if (!strncmp(bigfile_fname, "/dev/", 5)
     
    20762076            }
    20772077            res =
    2078                 slice_up_file_etc(bkpinfo, bigfile_fname,
     2078                slice_up_file_etc(bkpinfo, mrconf, bigfile_fname,
    20792079                                  ntfsprog_fifo, biggie_file_number,
    20802080                                  noof_biggie_files, use_ntfsprog);
     
    21252125 * @see make_afioballs_and_images
    21262126 */
    2127 int make_afioballs_and_images_OLD(struct s_bkpinfo *bkpinfo)
     2127int make_afioballs_and_images_OLD(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf)
    21282128{
    21292129
     
    21982198            res = move_files_to_stream(bkpinfo, curr_afioball_fname, NULL);
    21992199        } else {
    2200             res = move_files_to_cd(bkpinfo, curr_filelist_fname,
    2201                                    curr_xattr_list_fname,
    2202                                    curr_acl_list_fname,
    2203                                    curr_afioball_fname, NULL);
     2200            res =
     2201                move_files_to_cd(bkpinfo, mrconf, curr_filelist_fname,
     2202                                 curr_xattr_list_fname,
     2203                                 curr_acl_list_fname, curr_afioball_fname,
     2204                                 NULL);
    22042205        }
    22052206        retval += res;
     
    22462247 * @ingroup MLarchiveGroup
    22472248 */
    2248 int make_those_afios_phase(struct s_bkpinfo *bkpinfo)
     2249int make_those_afios_phase(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf)
    22492250{
    22502251    /*@ int ******************************************* */
     
    22632264        log_msg(1,
    22642265                "Using single-threaded make_afioballs_and_images() to suit b0rken FreeBSD 5.0");
    2265         res = make_afioballs_and_images_OLD(bkpinfo);
     2266        res = make_afioballs_and_images_OLD(bkpinfo, mrconf);
    22662267#else
    2267         res = make_afioballs_and_images_OLD(bkpinfo);
     2268        res = make_afioballs_and_images_OLD(bkpinfo, mrconf);
    22682269#endif
    22692270        write_header_block_to_stream(0, "stop-afioballs",
    22702271                                     BLK_STOP_AFIOBALLS);
    22712272    } else {
    2272         res = make_afioballs_and_images(bkpinfo);
     2273        res = make_afioballs_and_images(bkpinfo, mrconf);
    22732274    }
    22742275
     
    23762377 * transfer files over the network) or leave it as is.
    23772378 */
    2378 int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...) =
     2379int (*move_files_to_cd) (struct s_bkpinfo *, struct s_mrconf *mrconf, char *, ...) =
    23792380    _move_files_to_cd;
    23802381
     
    23972398 * @return The number of errors encountered (0 for success)
    23982399 */
    2399 int _move_files_to_cd(struct s_bkpinfo *bkpinfo, char *files_to_add, ...)
     2400int _move_files_to_cd(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, char *files_to_add, ...)
    24002401{
    24012402
     
    24362437    if (would_occupy / 1024 > bkpinfo->media_size[g_current_media_number]) {
    24372438        /* FALSE because this is not the last CD we'll write */
    2438         res = write_iso_and_go_on(bkpinfo, FALSE);
     2439        res = write_iso_and_go_on(bkpinfo, mrconf, FALSE);
    24392440        retval += res;
    24402441        if (res) {
     
    24802481 * @c backup_media_type field is used in this function.
    24812482 * @param imagesdir The directory containing the floppy images (usually
    2482  * /root/images/mindi).
     2483 * /var/cache/mindi).
    24832484 *
    24842485 * @return The number of errors encountered (0 for success)
     
    26532654    if (!bkpinfo->nonbootable_backup) {
    26542655#ifdef __FreeBSD__
    2655         if (!does_file_exist("/root/images/mindi/mindi-kern.1722.img"))
     2656        if (!does_file_exist("/var/cache/mindi/mindi-kern.1722.img"))
    26562657#else
    2657         if (!does_file_exist("/root/images/mindi/mindi-bootroot.1722.img")
    2658             && !does_file_exist("/root/images/mindi/mindi-boot.1440.img"))
     2658        if (!does_file_exist("/var/cache/mindi/mindi-bootroot.1722.img")
     2659            && !does_file_exist("/var/cache/mindi/mindi-boot.1440.img")
     2660            && !does_file_exist("/var/cache/mindi/mindi-boot.2880.img")
     2661            && !does_file_exist("/var/cache/mindi/mindi-boot.5760.img"))
    26592662#endif
    26602663        {
    26612664            mvaddstr_and_log_it(g_currentY++, 74, "No Imgs");
    2662             if (does_file_exist("/root/images/mindi/mondorescue.iso")) {
     2665            if (does_file_exist("/var/cache/mindi/mondorescue.iso")) {
    26632666                popup_and_OK
    2664                     ("Boot+data floppy creation failed.\nHowever, you may burn /root/images/mindi/mondorescue.iso to a CD\nand boot from that instead if you wish.");
     2667                    ("Boot+data floppy creation failed.\nHowever, you may burn /var/cache/mindi/mondorescue.iso to a CD\nand boot from that instead if you wish.");
    26652668                res++;
    26662669            }
    26672670        } else {
    2668             offer_to_write_floppies(bkpinfo, "/root/images/mindi");
     2671            offer_to_write_floppies(bkpinfo, "/var/cache/mindi");
    26692672            mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    26702673        }
     
    30043007 */
    30053008int
    3006 slice_up_file_etc(struct s_bkpinfo *bkpinfo, char *biggie_filename,
     3009slice_up_file_etc(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, char *biggie_filename,
    30073010                  char *ntfsprog_fifo, long biggie_file_number,
    30083011                  long noof_biggie_files, bool use_ntfsprog)
     
    31273130                                               bkpinfo->tmpdir, ""), NULL);
    31283131    } else {
    3129         res = move_files_to_cd(bkpinfo,
    3130                                slice_fname(biggie_file_number, 0,
    3131                                            bkpinfo->tmpdir, ""), NULL);
     3132        res =
     3133            move_files_to_cd(bkpinfo, mrconf,
     3134                             slice_fname(biggie_file_number, 0,
     3135                                         bkpinfo->tmpdir, ""), NULL);
    31323136    }
    31333137    i = bkpinfo->optimal_set_size / 256;
     
    32433247            res = move_files_to_stream(bkpinfo, file_to_archive, NULL);
    32443248        } else {
    3245             res = move_files_to_cd(bkpinfo, file_to_archive, NULL);
     3249            res = move_files_to_cd(bkpinfo, mrconf, file_to_archive, NULL);
    32463250        }
    32473251        paranoid_free(file_to_archive);
     
    33393343 * however, this occurs rarely.
    33403344 */
    3341 int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo)
     3345int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf)
    33423346{
    33433347    /*@ int ***************************************************** */
     
    33623366#endif
    33633367    paranoid_free(tmp);
    3364     res = write_iso_and_go_on(bkpinfo, TRUE);
     3368    res = write_iso_and_go_on(bkpinfo, mrconf, TRUE);
    33653369#ifndef _XWIN
    33663370    if (!g_text_mode) {
     
    33903394 * @see make_iso_fs
    33913395 */
    3392 int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd)
     3396int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, bool last_cd)
    33933397{
    33943398    /*@ pointers **************************************************** */
     
    34683472             g_current_media_number);
    34693473    for (that_one_was_ok = FALSE; !that_one_was_ok;) {
    3470         res = make_iso_fs(bkpinfo, isofile);
     3474        res = make_iso_fs(bkpinfo, mrconf, isofile);
    34713475        if (g_current_media_number == 1 && !res
    34723476            && (bkpinfo->backup_media_type == cdr
     
    37533757setenv("MONDO_SHARE", MONDO_SHARE, 1);
    37543758}
     3759
     3760void mrarchive_init_conf(struct s_mrconf *mrconf) {
     3761    char *command = NULL;
     3762    FILE *conffd = NULL;
     3763    FILE *fin = NULL;
     3764    int n = 0;
     3765    char *param = NULL;
     3766
     3767    mrconf = (struct s_mrconf *)malloc(sizeof(struct s_mrconf));
     3768    if (mrconf == NULL) {
     3769            fatal_error("Unable to malloc mrconf");
     3770    }
     3771    /* Default for everything int : 0 char * : NULL */
     3772
     3773    /* mindi conf parameters also needed in mondo */
     3774    mrconf->ia64_boot_size = 0;
     3775
     3776    asprintf(&command, "mindi -printvar IA64_BOOT_SIZE");
     3777    fin = popen(command, "r");
     3778    getline(&param, &n, fin);
     3779    pclose(fin);
     3780    paranoid_free(command);
     3781    mrconf->ia64_boot_size = atoi(param);
     3782    paranoid_free(param);
     3783
     3784    mrconf->iso_creation_cmd = NULL;
     3785
     3786    /* Finds mondo conf file */
     3787    mrconf_open(MONDO_CONF_DIR"/mondo.conf");
     3788
     3789    /* mondo conf parameters needed */
     3790    mrconf->iso_creation_cmd = mrconf_sread(iso_creation_cmd);
     3791
     3792    mrconf_close();
  • trunk/mondo/mondo/common/libmondo-archive.h

    r483 r539  
    1717int make_slices_and_images(struct s_bkpinfo *bkpinfo,
    1818                           char *biggielist_fname);
    19 int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile);
     19int make_iso_fs(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf, char *destfile);
    2020int make_afioballs_and_images(struct s_bkpinfo *bkpinfo);
    2121extern int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...);
  • trunk/mondo/mondo/common/libmondo-filelist.c

    r507 r539  
    15361536                       char *userdef_filelist)
    15371537{
    1538     char sz_datefile_wildcard[] = "/var/cache/mondo-archive/difflevel.%d";
     1538    char sz_datefile_wildcard[] = "/var/cache/mondo/difflevel.%d";
    15391539    char *p, *q;
    15401540    char *sz_datefile;
     
    16051605        asprintf(&exclude_paths, " %s %s %s %s %s %s . .. \
    16061606" MNT_CDROM " " MNT_FLOPPY " /media/cdrom /media/cdrecorder \
    1607 /proc /sys /root/images/mondo /root/images/mindi ", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
     1607/proc /sys /tmp /var/cache/mondo /var/cache/mindi", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
    16081608
    16091609        log_msg(2, "Excluding paths = '%s'", exclude_paths);
  • trunk/mondo/mondo/common/libmondo-tools.c

    r507 r539  
    737737        strcpy(bkpinfo->isodir, "/");
    738738    } else {
    739         strcpy(bkpinfo->isodir, "/root/images/mondo");
     739        strcpy(bkpinfo->isodir, "/var/cache/mondo/iso");
    740740    }
    741741    strcpy(bkpinfo->prefix, STD_PREFIX);
     
    848848#endif
    849849
    850     if ((Lres = free_space_on_given_partition("/root")) == -1) {
     850    if ((Lres = free_space_on_given_partition("/var/cache/mondo")) == -1) /* {
    851851        Lres = free_space_on_given_partition("/");
    852852    }
     853    */
    853854    log_it("Free space on given partition = %ld MB", Lres);
    854855
    855856    if (Lres < 50) {
    856         run_program_and_log_output
    857             ("rm -Rf /root/images/mindi; mkdir -p /home/root/images/mindi; mkdir -p /root/images; ln -sf /home/root/images/mindi /root/images/mindi",
    858              3);
    859         //      fatal_error("Your / (or /root) partition has <50MB free. Please adjust your partition table to something saner.");
     857        fatal_error("Your /var/cache/mondo partition has <50MB free. Please adjust your partition table to something saner.");
    860858    }
    861859
     
    12161214}
    12171215
    1218 
    1219 /**
    1220  * The standard log_debug_msg() (log_msg() also due to a macro). Writes some describing
    1221  * information to the logfile.
    1222  */
    1223 void standard_log_debug_msg(int debug_level, const char *szFile,
    1224                             const char *szFunction, int nLine,
    1225                             const char *fmt, ...)
    1226 {
    1227     va_list args;
    1228     int i;
    1229     static int depth = 0;
    1230     FILE *fout;
    1231 
    1232     if (depth > 5) {
    1233         depth--;
    1234         return;
    1235     }
    1236     depth++;
    1237 
    1238     if (debug_level <= g_loglevel) {
    1239         va_start(args, fmt);
    1240         if (!(fout = fopen(MONDO_LOGFILE, "a"))) {
    1241             return;
    1242         }                       // fatal_error("Failed to openout to logfile - sheesh..."); }
    1243 
    1244         // add tabs to distinguish log levels
    1245         if (debug_level > 0) {
    1246             for (i = 1; i < debug_level; i++)
    1247                 fprintf(fout, "\t");
    1248             if (getpid() == g_main_pid)
    1249                 fprintf(fout, "[Main] %s->%s#%d: ", szFile, szFunction,
    1250                         nLine);
    1251             else if (getpid() == g_buffer_pid && g_buffer_pid > 0)
    1252                 fprintf(fout, "[Buff] %s->%s#%d: ", szFile, szFunction,
    1253                         nLine);
    1254             else
    1255                 fprintf(fout, "[TH=%d] %s->%s#%d: ", getpid(), szFile,
    1256                         szFunction, nLine);
    1257         }
    1258         vfprintf(fout, fmt, args);
    1259 
    1260         // do not slow down the progran if standard debug level
    1261         // must be enabled: if no flush, the log won't be up-to-date if there
    1262         // is a segfault
    1263         //if (g_dwDebugLevel != 1)
    1264 
    1265         va_end(args);
    1266         fprintf(fout, "\n");
    1267         paranoid_fclose(fout);
    1268     }
    1269     depth--;
    1270 }
    1271 
    1272 /**
    1273  * Function pointer to the @c log_debug_msg function to use. Points to standard_log_debug_msg() by default.
    1274  */
    1275 void (*log_debug_msg) (int, const char *, const char *, int, const char *,
    1276                        ...) = standard_log_debug_msg;
    1277 
    1278 
    12791216/**
    12801217 * Allocate or free important globals, depending on @p mal.
  • trunk/mondo/mondo/common/mondostructures.h

    r518 r539  
    784784    struct s_mdrec el[MAXIMUM_RAID_DEVS];
    785785};
     786
     787struct s_mrconf {
     788    int ia64_boot_size;
     789    char *iso_creation_cmd;
     790};
  • trunk/mondo/mondo/common/my-stuff.h

    r518 r539  
    1 /* $Id$ */
    2 
     1/*
     2 * Common defines across the project
     3 *
     4 *  $Id$
     5 */
     6
     7#ifndef _MY_STUFF_H_
     8#define _MY_STUFF_H_
     9
     10/* BERLIOS
    311#define HAVE_MALLOC 1
     12*/
    413
    514// Extra info for ACLs and SELINUX users
     
    2635 * Create the illusion of a Boolean type.
    2736 */
    28 #define bool int
     37#define bool unsigned char
    2938#define TRUE 1
    3039#define FALSE 0
     
    3443#include <config.h>
    3544#endif
     45/* BERLIOS
     46 * Useful ?
     47*/
    3648
    3749#ifndef __FreeBSD__
     
    4759
    4860#include <stdlib.h>
     61/* BERLIOS
    4962#ifndef  __USE_FILE_OFFSET64
    5063#define  __USE_FILE_OFFSET64
     
    5366#define  __USE_LARGEFILE64
    5467#endif
     68*/
    5569#include <sys/stat.h>
    5670#include <fcntl.h>
     
    6478#include <signal.h>
    6579#endif
    66 //#include <curses.h>
    6780#include <newt.h>
    6881#include <ctype.h>
     
    7083#ifndef S_SPLINT_S
    7184#include <pthread.h>
    72 #endif
    7385#include <assert.h>
    7486
    75 #include "../../config.h"
    76 
     87/*
    7788#if defined(DEBUG) && !__cplusplus
    7889int count;
    79 char trace_log[255];            /*buffer for logging */
     90char trace_log[255];
    8091char *trace_log_ptr;
    81 #endif                          /* DEBUG */
    82 
    83 #define IA64_BOOT_SIZE "8192"   /* Should be coherent with mindi */
    84 #define STD_PREFIX "mondorescue"    /* Should be coherent with mindi */
     92#endif
     93*/
     94
     95#define STD_PREFIX "mondorescue"
    8596
    8697/**
     
    129140#define CRC_M16 0xA001          ///< Mask for crc16.
    130141#define CRC_MTT 0x1021          ///< Mask for crc-ccitt.
    131 
    132 #define FALSE 0                 ///< The ubiquitous FALSE macro.
    133 #define TRUE 1                  ///< The even more ubiquitous TRUE macro.
    134142
    135143#define SCREEN_LENGTH 25        ///< The default size of the screen.
  • trunk/mondo/mondo/mondoarchive/main.c

    r507 r539  
    133133{
    134134    struct s_bkpinfo *bkpinfo;
     135    struct s_mrconf *mrconf;
    135136    char *tmp;
    136137    int res = 0;
     
    160161    malloc_libmondo_global_strings();
    161162
     163    /* Initialize Configuration Structure */
     164    mrarchive_init_conf(mrconf);
     165
     166    res = 0;
     167    retval = 0;
    162168    diffs = 0;
    163169    printf(_("Initializing...\n"));
     
    327333    /* If we're meant to backup then backup */
    328334    if (bkpinfo->backup_data) {
    329         res = backup_data(bkpinfo);
     335        res = backup_data(bkpinfo, mrconf);
    330336        retval += res;
    331337        if (res) {
     
    363369    }
    364370
    365     if (does_file_exist("/root/images/mindi/mondorescue.iso")) {
     371    if (does_file_exist("/var/cache/mindi/mondorescue.iso")) {
    366372        log_to_screen
    367             (_("/root/images/mindi/mondorescue.iso, a boot/utility CD, is available if you want it."));
     373            (_("/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it."));
    368374    }
    369375
  • trunk/mondo/mondo/mondorestore/mondo-rstr-newt.c

    r507 r539  
    22942294 * @param isodir_device Where to put the device (e.g. /dev/hda4) the user enters.
    22952295 * @param isodir_format Where to put the format (e.g. ext2) the user enters.
    2296  * @param isodir_path Where to put the path (e.g. /root/images/mondo) the user enters.
     2296 * @param isodir_path Where to put the path (e.g. /var/cache/mondo) the user enters.
    22972297 * @param nuke_me_please Whether we're planning on nuking or not.
    22982298 * @return TRUE if OK was pressed, FALSE otherwise.
Note: See TracChangeset for help on using the changeset viewer.