[06:20] <panpeter> Hi there, short question. Is there a way i can detect if ubuntu was booted via secure boot? may some file inside /sys/firmware/efi or can i only detect via trying to load a non-signed module?
[10:11] <jushur> panpeter: Check whether the dir /sys/firmware/efi exists, if it exists it means the kernel has booted in EFI mode.
[10:12] <panpeter> jushur: okay, but is efi == secure boot? i thought this only means we do not have used legacy bios to boot?
[10:16] <jushur> panpeter: od -An -t u1 /sys/firmware/efi/efivars/SecureBoot-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[10:16] <jushur> panpeter: write out that, exept all the -XXXX after SecureBoot
[10:16] <jushur> panpeter: that part you tab autocomplete
[10:16] <panpeter> jushur: will test this, thanks a lot ;)
[10:18] <jushur> panpeter: sudo bootctl status
[10:18] <panpeter> jushur: is this the systemd way to check it?