mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
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
This commit is contained in:
parent
34412f79e6
commit
81375b9bf7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user