1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

bootctl: improve output regarding random seed if we cannot access ESP

This commit is contained in:
Lennart Poettering 2025-02-09 07:38:41 +01:00 committed by Daan De Meyer
parent a341ea5c01
commit f90efd2d13

View File

@ -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");