Ignore:
Timestamp:
Mar 30, 2012, 2:43:48 AM (12 years ago)
Author:
Bruno Cornec
Message:

r4608@localhost: bruno | 2012-03-29 20:28:19 +0200

  • Manages grub version at backup time and in the conf file
  • Add traces to debug the mdadm UUID issue
File:
1 edited

Legend:

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

    r2971 r2985  
    517517    char *use_star_sz = NULL;
    518518    char *bootldr_str = NULL;
     519    char *bootldr_ver = NULL;
    519520    char *tape_device = NULL;
    520521    char *last_filelist_number = NULL;
     
    705706                ("The de facto standard location for your boot loader's config file is /boot/grub/menu.lst, /boot/grub/grub.cfg, or /boot/grub2/grub.cfg but I cannot find it there. What is wrong with your Linux distribution?");
    706707        }
     708        mr_asprintf(&bootldr_ver, "%s", call_program_and_get_last_line_of_output("grub --version"));
    707709    } else if (bkpinfo->boot_loader == 'E') {
    708710        mr_asprintf(&bootldr_str, "ELILO");
     
    754756    log_to_screen(tmp);
    755757    mr_free(tmp);
     758    if (bootldr_ver != NULL) {
     759        mr_asprintf(&tmp, "Boot loader version string: %s", bootldr_ver);
     760        log_to_screen(tmp);
     761        mr_free(tmp);
     762    }
    756763
    757764    mr_asprintf(&tmp, "%s/BOOTLOADER.DEVICE", bkpinfo->tmpdir);
     
    814821    }
    815822    mr_free(bootldr_str);
     823    mr_free(tmp);
     824
     825    mr_asprintf(&tmp, "%s/BOOTLOADER.VER", bkpinfo->tmpdir);
     826    if (write_one_liner_data_file(tmp, bootldr_ver)) {
     827        res++;
     828        log_msg(1, "%ld: Unable to write one-liner bootloader.ver",
     829                __LINE__);
     830    }
     831    mr_free(bootldr_ver);
    816832    mr_free(tmp);
    817833
Note: See TracChangeset for help on using the changeset viewer.