summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorДамјан Георгиевски <gdamjan@gmail.com>2018-01-15 18:21:14 +0100
committerДамјан Георгиевски <gdamjan@gmail.com>2018-01-15 18:21:14 +0100
commit81375b9bf780505c6971993aaf7a62303f16c93f (patch)
tree7864438c801011dce61100270f71a2d770b6291e /src/boot
parent34412f79e6ad439d3fa99de6d97d8322e08c1e45 (diff)
downloadsystemd-81375b9bf780505c6971993aaf7a62303f16c93f.tar.gz
bootctl: report StubInfo if present
Current Loader: Product: n/a Stub: systemd-stub 236 ESP: /dev/disk/by-partuuid/b0a0807d-0592-40e9-adac-3bb724e9e305 File: └─/EFI/Secure/secure-boot-4.14.13+.efi
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/bootctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index 0c2a39d34b..ae034f5cdb 100644
--- a/src/boot/bootctl.c
+++ b/src/boot/bootctl.c
@@ -950,12 +950,13 @@ static int verb_status(int argc, char *argv[], void *userdata) {
* can show */
if (is_efi_boot()) {
- _cleanup_free_ char *fw_type = NULL, *fw_info = NULL, *loader = NULL, *loader_path = NULL;
+ _cleanup_free_ char *fw_type = NULL, *fw_info = NULL, *loader = NULL, *loader_path = NULL, *stub = NULL;
sd_id128_t loader_part_uuid = SD_ID128_NULL;
read_loader_efi_var("LoaderFirmwareType", &fw_type);
read_loader_efi_var("LoaderFirmwareInfo", &fw_info);
read_loader_efi_var("LoaderInfo", &loader);
+ read_loader_efi_var("StubInfo", &stub);
read_loader_efi_var("LoaderImageIdentifier", &loader_path);
if (loader_path)
@@ -983,6 +984,8 @@ static int verb_status(int argc, char *argv[], void *userdata) {
printf("Current Loader:\n");
printf(" Product: %s\n", strna(loader));
+ if (stub)
+ printf(" Stub: %s\n", stub);
if (!sd_id128_is_null(loader_part_uuid))
printf(" ESP: /dev/disk/by-partuuid/%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n",
SD_ID128_FORMAT_VAL(loader_part_uuid));