Changeset 3378 in MondoRescue for branches/3.2/mondo/src/common
- Timestamp:
- May 6, 2015, 2:10:24 PM (10 years ago)
- Location:
- branches/3.2/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-archive.c
r3376 r3378 668 668 } 669 669 if ((!does_file_exist("/boot/grub/menu.lst")) && (!does_file_exist("/boot/grub/grub.cfg")) && (!does_file_exist("/boot/grub2/grub.cfg"))) { 670 mr_free(bootldr_str); 671 fatal_error("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?"); 670 /* if UEFI then search under /boot/efi */ 671 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("find /boot/efi -name grub.conf"); 672 if (strstr(tmp, "grub.conf") == NULL) { 673 mr_free(bootldr_str); 674 fatal_error("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?"); 675 } 672 676 } 673 677 mr_asprintf(bootldr_ver, "%s", call_program_and_get_last_line_of_output("grub --version 2> /dev/null")); -
branches/3.2/mondo/src/common/libmondo-devices.c
r3377 r3378 7 7 * Functions to handle interactions with backup devices. 8 8 */ 9 10 #include <sys/types.h> 11 #include <dirent.h> 9 12 10 13 #include "my-stuff.h" … … 2116 2119 #endif 2117 2120 /* Try to detect whether we are in fact in UEFI mode */ 2118 fd = opendir("/sys/firmware/efi" , "r");2121 fd = opendir("/sys/firmware/efi"); 2119 2122 if (fd != NULL) { 2120 2123 ret = UEFI;
Note:
See TracChangeset
for help on using the changeset viewer.