mirror of
https://github.com/systemd/systemd.git
synced 2025-03-06 00:58:29 +03:00
dissect: show basic image data even when can't enter the file systems
This commit is contained in:
parent
050094e65c
commit
3568c47664
@ -974,6 +974,13 @@ static int action_dissect(
|
||||
printf(" Arch.: %s\n",
|
||||
strna(architecture_to_string(dissected_image_architecture(m))));
|
||||
|
||||
if (!sd_id128_is_null(m->image_uuid))
|
||||
printf("Image UUID: %s\n",
|
||||
SD_ID128_TO_UUID_STRING(m->image_uuid));
|
||||
|
||||
if (m->image_name && !streq(m->image_name, bn))
|
||||
printf("Image Name: %s\n", m->image_name);
|
||||
|
||||
putc('\n', stdout);
|
||||
fflush(stdout);
|
||||
}
|
||||
@ -993,12 +1000,6 @@ static int action_dissect(
|
||||
return log_error_errno(r, "Failed to acquire image metadata: %m");
|
||||
else if (!sd_json_format_enabled(arg_json_format_flags)) {
|
||||
|
||||
if (m->image_name && !streq(m->image_name, bn))
|
||||
printf("Image Name: %s\n", m->image_name);
|
||||
|
||||
if (!sd_id128_is_null(m->image_uuid))
|
||||
printf("Image UUID: %s\n", SD_ID128_TO_UUID_STRING(m->image_uuid));
|
||||
|
||||
if (m->hostname)
|
||||
printf(" Hostname: %s\n", m->hostname);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user