diff --git a/src/bootctl/bootctl-status.c b/src/bootctl/bootctl-status.c index 40642d3c1c43e..75ffb9fdba0b6 100644 --- a/src/bootctl/bootctl-status.c +++ b/src/bootctl/bootctl-status.c @@ -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");