Changeset 3375 in MondoRescue for branches/3.2/mondo/src/common/libmondo-devices.c
- Timestamp:
- Apr 27, 2015, 4:25:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3374 r3375 2104 2104 2105 2105 2106 /** 2107 * Return the type of boot of the system (UEFI, EFI or BIOS) 2108 */ 2109 t_boot mr_boot_type() { 2110 2111 t_boot ret = BIOS; 2112 FILE *fd = NULL; 2113 2114 #ifdef __IA64__ 2115 ret = EFI; 2116 #endif 2117 /* Try to detect whether we are in fact in UEFI mode */ 2118 /* TODO: find the right trigger */ 2119 fd = fopen("/sys/module/efi", "r"); 2120 if (fd != NULL) { 2121 ret = UEFI; 2122 } 2123 return(ret); 2124 } 2106 2125 2107 2126 … … 2642 2661 } 2643 2662 bkpinfo->boot_loader = i; 2663 bkpinfo->boot_type = mr_boot_type(); 2664 /* TODO: Chcek consisytency of boot type and boot loader */ 2644 2665 2645 2666 if (bkpinfo->include_paths) {
Note:
See TracChangeset
for help on using the changeset viewer.