Changeset 3885 in MondoRescue for branches/3.3/mondo/src/common/libmondo-devices.c
- Timestamp:
- Mar 10, 2024, 7:23:12 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-devices.c
r3883 r3885 1771 1771 DIR *fd = NULL; 1772 1772 1773 #ifdef __IA64__1774 return(EFI);1775 #endif1776 1773 /* Try to detect whether we are in fact in UEFI mode */ 1777 1774 fd = opendir("/sys/firmware/efi"); … … 1788 1785 * Find out which boot loader is in use. 1789 1786 * @param which_device Device to look for the boot loader on. 1790 * @return 'L' for LILO, ' E'for ELILO, 'G' for GRUB, 'B' or 'D' for FreeBSD boot loaders, or 'U' for Unknown.1787 * @return 'L' for LILO, 'G' for GRUB, 'B' or 'D' for FreeBSD boot loaders, or 'U' for Unknown. 1791 1788 * @note Under Linux, all drives are examined, not just @p which_device. 1792 1789 */ … … 1813 1810 count_dangerouslydedicated++; 1814 1811 } 1815 log_it("%d grubs and %d lilos and %d elilosand %d boot0s and %d DD\n",1816 count_grubs, count_lilos, count_ elilos, count_boot0s,1812 log_it("%d grubs and %d lilos andand %d boot0s and %d DD\n", 1813 count_grubs, count_lilos, count_boot0s, 1817 1814 count_dangerouslydedicated); 1818 1815 … … 1851 1848 1852 1849 /*@ end vars *************************************************** */ 1853 1854 #ifdef __IA64__1855 /* No choice for it */1856 return ('E');1857 #endif1858 if (bkpinfo->boot_type == EFI) {1859 /* No choice for it */1860 return ('E');1861 }1862 1850 1863 1851 if (bkpinfo->boot_type == UEFI) { … … 2455 2443 mr_asprintf(bkpinfo->boot_device, "%s", tmp1); 2456 2444 2457 if (does_string_exist_in_boot_block(bkpinfo->boot_device, "ELILO")) { 2458 i = 'E'; 2459 } else 2460 if (does_string_exist_in_boot_block(bkpinfo->boot_device, "LILO")) { 2445 if (does_string_exist_in_boot_block(bkpinfo->boot_device, "LILO")) { 2461 2446 i = 'L'; 2462 2447 } else … … 2568 2553 } 2569 2554 // Interactive mode: 2570 #ifdef __IA64__2571 bkpinfo->make_cd_use_lilo = TRUE;2572 #else2573 2555 bkpinfo->make_cd_use_lilo = FALSE; 2574 #endif2575 2556 bkpinfo->backup_data = TRUE; 2576 2557 if (strcmp(compression_type,"lzo") == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.