Ignore:
Timestamp:
Sep 30, 2007, 8:16:06 PM (13 years ago)
Author:
Bruno Cornec
Message:

use conf file for kernel_path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-archive.c

    r1663 r1669  
    474474    copy_mondo_and_mindi_stuff_to_scratchdir(); // payload, too, if it exists
    475475#if __FreeBSD__ == 5
    476     strcpy(bkpinfo->kernel_path, "/boot/kernel/kernel");
     476    mr_allocstr(bkpinfo->kernel_path, "/boot/kernel/kernel");
    477477#elif __FreeBSD__ == 4
    478     strcpy(bkpinfo->kernel_path, "/kernel");
     478    mr_allocstr(bkpinfo->kernel_path, "/kernel");
    479479#elif linux
    480480    if (figure_out_kernel_path_interactively_if_necessary
     
    763763    fd1 = mr_fopen(MONDORESTORECFG, "a");
    764764
     765    mr_fprintf(fd, "mindi_use_own_kernel=yes\n");
     766    if (strcmp(mr_conf->mondo_kernel,"FAILSAFE") == 0) {
     767    } else {
     768    }
    765769    mr_fprintf(fd, "mindi_kernel=%s\n", bkpinfo->kernel_path);
    766     mr_fprintf(fd, "mindi_use_own_kernel=yes\n");
    767770
    768771    mr_fprintf(fd1, "files-in-filelist=%ld\n", lines_in_filelist);
     
    868871    } else {
    869872        mr_fprintf(fd1, "differential=no\n");
     873    }
     874    if (mr_conf->mondo_create_mindi_cd) {
     875        mr_fprintf(fd1, "mindi_write_cd=yes\n");
     876    } else {
     877        mr_fprintf(fd1, "mindi_write_cd=no\n");
    870878    }
    871879
Note: See TracChangeset for help on using the changeset viewer.