Let's not claim the system was not booted with UEFI if we use --image=.
The system wasn't booted at all, after all. Hence supress the whole
section altogether in this case.
pager_open(arg_pager_flags);
- if (!arg_root && is_efi_boot()) {
+ if (arg_root)
+ log_debug("Skipping 'System' section, operating offline.");
+ else if (!is_efi_boot())
+ printf("%sSystem:%s\n"
+ "Not booted with EFI\n\n",
+ ansi_underline(), ansi_normal());
+ else {
static const struct {
uint64_t flag;
const char *name;
}
printf("\n");
- } else
- printf("%sSystem:%s\n"
- "Not booted with EFI\n\n",
- ansi_underline(), ansi_normal());
+ }
if (arg_esp_path)
RET_GATHER(r, status_binaries(arg_esp_path, esp_uuid));