I found this text in a book (on linux) and i was wondering if there is an equivalent in MacOS.
"To determine if your system uses a BIOS or UEFI, run efibootmgr. If you get a list of boot targets, your system has UEFI. If instead you’re told that EFI variables aren’t supported, your system uses a BIOS. Alternatively, you can check to see that /sys/ firmware/efi exists; if so, your system uses UEFI."
I searched the web and SE but what i found is all about dual-boot things. (There is a post that looked promising (Efibootmgr command for OS X), but is nothing there. Just focusing on dual-boot, not on the command).
I just need a command-line option to check if a system uses BIOS or UEFI (and in any case, list the bootable targets).
/usr/libexec/firmwarecheckers/eficheck/eficheck --integrity-checkwill check is your Mac's UEFI firmware is genuine and then print a report of your current EFI version (and Boot ROM). – Thinkr May 19 '23 at 07:26./eficheck --integrity-check ReadBinaryFromKernel: No matching services found. Either this system is not supported by eficheck, or you need to re-load the kext IntegrityCheck: couldn't get EFI contents from kext– nostromo May 19 '23 at 07:28