Changeset 3423 in MondoRescue


Ignore:
Timestamp:
Aug 26, 2015, 2:21:27 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fix the UEFI detection of gub
File:
1 edited

Legend:

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

    r3409 r3423  
    677677        if ((!does_file_exist("/boot/grub/menu.lst")) && (!does_file_exist("/boot/grub/grub.cfg")) && (!does_file_exist("/boot/grub2/grub.cfg"))) {
    678678            /* if UEFI then search under /boot/efi */
    679             mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("find /boot/efi -name grub.conf"));
    680             if (strstr(tmp, "grub.conf") == NULL) {
     679            mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("find /boot/efi -name grub.c*"));
     680            if (strstr(tmp, "grub.c") == NULL) {
    681681                mr_free(bootldr_str);
    682                 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?");
     682                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 /boot/efi/.../grub.cfg but I cannot find it there. What is wrong with your Linux distribution?");
    683683            }
    684684        }
Note: See TracChangeset for help on using the changeset viewer.