I'm doing an ssh to a PC that no one can actually physically reach, yet.
Said PC was made after 2011, so it defintely has UEFI.
The issue is that every posts on the web is about checking if the PC has a UEFI or BIOS (e.g. How to know if I'm booting using UEFI?), which is not what I'm trying to find out.
My question is then pretty simple: How do I tell if a PC with UEFI, booted with CSM/Legacy/BIOS Mode enabled or not ?
Update 1: There's lot of ways to tell if it's UEFI or not, but none of them can definitely tell since they all contradict themselves.
Details:
- The drive is MBR
- There's no sign of an ESP partition at all (fstab, etc)
- There's no sign of EFI files on
/bootat all cat /sys/firmware/efi/fw_platform_sizegave64, which wouldn't work at all if it was in CSM Mode on another PC.update-grubgaveAdding boot menu entry for EFI firmware configurationefibootmgrgave me a boot order, which usually shows when there's a UEFI.