Changeset 2481 in MondoRescue for branches/2.2.10/mondo/src


Ignore:
Timestamp:
Nov 12, 2009, 2:33:39 AM (16 years ago)
Author:
Bruno Cornec
Message:
  • If using nolvm, mondorestore should also not analyze and handle i-want-my-lvm
  • Add support for diskdumplib driver useful for RHEL 3 and IBM xseries 336
  • Fix #367 - the for loop doesn't make any test now, as it was computed before entering the loop, leading to a

n error, and was also made inside the loop anyway.

  • Adds a nolvm boot option at restore time
  • small improvement for loging in USB case

(merge from 2.2.9 2475:2480)

Location:
branches/2.2.10/mondo/src
Files:
2 edited

Legend:

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

    r2463 r2481  
    20422042                       get_last_filelist_number() + 1);
    20432043
    2044     for (; does_file_exist(curr_filelist_fname); curr_set_no++) {
     2044    for (;;) {
    20452045        /* backup this set of files */
    20462046        mr_asprintf(curr_filelist_fname, FILELIST_FNAME_RAW_SZ, bkpinfo->tmpdir, curr_set_no);
     
    21232123        mr_free(curr_filelist_fname);
    21242124        mr_free(curr_afioball_fname);
     2125        curr_set_no++;
    21252126    }
    21262127    close_progress_form();
  • branches/2.2.10/mondo/src/mondorestore/mondo-prep.c

    r2462 r2481  
    213213    return (0);
    214214#endif
     215
     216    tmp = call_program_and_get_last_line_of_output("cat /proc/cmdline");
     217    if (strstr(tmp, "nolvm")) {
     218        mr_free(tmp);
     219        return(0);
     220    }
     221    mr_free(tmp);
    215222
    216223    if (!(fin = fopen("/tmp/i-want-my-lvm", "r"))) {
Note: See TracChangeset for help on using the changeset viewer.