Skip to content

Commit

Permalink
bootctl: improve output regarding random seed if we cannot access ESP
Browse files Browse the repository at this point in the history
  • Loading branch information
poettering authored and DaanDeMeyer committed Feb 9, 2025
1 parent a341ea5 commit f90efd2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bootctl/bootctl-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,11 @@ int verb_status(int argc, char *argv[], void *userdata) {
if (!p)
return log_oom();

have = access(p, F_OK) >= 0;
printf(" Exists: %s\n", yes_no(have));
r = access(p, F_OK);
if (r < 0 && errno != ENOENT)
printf(" Exists: Can't access %s (%m)\n", p);
else
printf(" Exists: %s\n", yes_no(r >= 0));
}

printf("\n");
Expand Down

0 comments on commit f90efd2

Please sign in to comment.