diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-24 19:37:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-25 10:04:36 +0200 |
commit | 571d0134bd464444567cf4eb0d2ed8df40045f36 (patch) | |
tree | 0039138a0d652a453bc9604375f32489347a3b82 /src/shared/generator.c | |
parent | fbe1a1a94f19112d7e5d60c40d87487ad24e2ce4 (diff) |
fsck: consider a fsck implementation linked to /bin/true non-existant
Diffstat (limited to 'src/shared/generator.c')
-rw-r--r-- | src/shared/generator.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c index 5ac7b5f02f..dcfddaa731 100644 --- a/src/shared/generator.c +++ b/src/shared/generator.c @@ -49,10 +49,13 @@ int generator_write_fsck_deps( if (!isempty(fstype) && !streq(fstype, "auto")) { int r; r = fsck_exists(fstype); - if (r < 0) { - log_warning("Checking was requested for %s, but fsck.%s cannot be used: %s", what, fstype, strerror(-r)); + if (r == -ENOENT) { /* treat missing check as essentially OK */ - return r == -ENOENT ? 0 : r; + log_debug("Checking was requested for %s, but fsck.%s does not exist: %s", what, fstype, strerror(-r)); + return 0; + } else if (r < 0) { + log_warning("Checking was requested for %s, but fsck.%s cannot be used: %s", what, fstype, strerror(-r)); + return r; } } |