Changeset 3379 in MondoRescue for branches/3.2/mondo/src/common/libmondo-devices.c
- Timestamp:
- May 6, 2015, 11:43:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3378 r3379 415 415 assert_string_is_neither_NULL_nor_zerolength(str); 416 416 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 } 419 423 i = system(command); 420 424 mr_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.