bootctl: improve output regarding random seed if we cannot access ESP
This commit is contained in:
committed by
Daan De Meyer
parent
a341ea5c01
commit
f90efd2d13
@@ -534,8 +534,11 @@ int verb_status(int argc, char *argv[], void *userdata) {
|
|||||||
if (!p)
|
if (!p)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
have = access(p, F_OK) >= 0;
|
r = access(p, F_OK);
|
||||||
printf(" Exists: %s\n", yes_no(have));
|
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");
|
printf("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user