Ignore:
Timestamp:
May 6, 2015, 11:43:08 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fix GRUB detection issu on UEFI based systems
  • Initialize Boot type for non interactive setup as well
  • Syntax fix
File:
1 edited

Legend:

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

    r3378 r3379  
    415415    assert_string_is_neither_NULL_nor_zerolength(str);
    416416
    417     /* For UEFI detection, this should be extended to count=2 */
    418     mr_asprintf(command, "dd if=%s bs=446 count=1 2> /dev/null | strings | grep \"%s\" > /dev/null 2> /dev/null", dev, str);
     417    /* For UEFI detection, this should be extended to count=1000 ! */
     418    if (bkpinfo->boot_type == UEFI) {
     419        mr_asprintf(command, "dd if=%s bs=446 count=1000 2> /dev/null | strings | grep \"%s\" > /dev/null 2> /dev/null", dev, str);
     420    } else {
     421        mr_asprintf(command, "dd if=%s bs=446 count=1 2> /dev/null | strings | grep \"%s\" > /dev/null 2> /dev/null", dev, str);
     422    }
    419423    i = system(command);
    420424    mr_free(command);
Note: See TracChangeset for help on using the changeset viewer.