Changeset 2985 in MondoRescue for branches/3.0/mondo/src/common/libmondo-archive.c
- Timestamp:
- Mar 30, 2012, 2:43:48 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/common/libmondo-archive.c
r2971 r2985 517 517 char *use_star_sz = NULL; 518 518 char *bootldr_str = NULL; 519 char *bootldr_ver = NULL; 519 520 char *tape_device = NULL; 520 521 char *last_filelist_number = NULL; … … 705 706 ("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?"); 706 707 } 708 mr_asprintf(&bootldr_ver, "%s", call_program_and_get_last_line_of_output("grub --version")); 707 709 } else if (bkpinfo->boot_loader == 'E') { 708 710 mr_asprintf(&bootldr_str, "ELILO"); … … 754 756 log_to_screen(tmp); 755 757 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 } 756 763 757 764 mr_asprintf(&tmp, "%s/BOOTLOADER.DEVICE", bkpinfo->tmpdir); … … 814 821 } 815 822 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); 816 832 mr_free(tmp); 817 833
Note:
See TracChangeset
for help on using the changeset viewer.