/srv/irclogs.ubuntu.com/2017/05/31/#ubuntu+1.txt

panpeterHi 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?06:20
=== lotuspsychje_ is now known as lotuspsychje
=== DJones_ is now known as DJones
jushurpanpeter: Check whether the dir /sys/firmware/efi exists, if it exists it means the kernel has booted in EFI mode.10:11
panpeterjushur: okay, but is efi == secure boot? i thought this only means we do not have used legacy bios to boot?10:12
jushurpanpeter: od -An -t u1 /sys/firmware/efi/efivars/SecureBoot-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX10:16
jushurpanpeter: write out that, exept all the -XXXX after SecureBoot10:16
jushurpanpeter: that part you tab autocomplete10:16
panpeterjushur: will test this, thanks a lot ;)10:16
jushurpanpeter: sudo bootctl status10:18
panpeterjushur: is this the systemd way to check it?10:18
=== nacc_ is now known as nacc
=== Elimin8r is now known as Elimin8er
=== JanC_ is now known as JanC
=== ghostcube_ is now known as ghostcube

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!