]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: show whether the firmware has TPM2 support
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Feb 2021 22:11:56 +0000 (23:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Feb 2021 22:11:56 +0000 (23:11 +0100)
src/boot/bootctl.c

index 7b759bcd0257a6593ce10b3bdad2e85f59b5bf45..cccd834cc82fe66ef68a00c4af57cd749768afee 100644 (file)
@@ -1233,6 +1233,7 @@ static int verb_status(int argc, char *argv[], void *userdata) {
                 printf("     Firmware: %s%s (%s)%s\n", ansi_highlight(), strna(fw_type), strna(fw_info), ansi_normal());
                 printf("  Secure Boot: %sd\n", enable_disable(is_efi_secure_boot()));
                 printf("   Setup Mode: %s\n", is_efi_secure_boot_setup_mode() ? "setup" : "user");
+                printf(" TPM2 Support: %s\n", yes_no(efi_has_tpm2()));
 
                 k = efi_get_reboot_to_firmware();
                 if (k > 0)