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:
parent
a341ea5c01
commit
f90efd2d13
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user