summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-03-13 23:51:37 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-03-14 00:01:33 +0000
commitc3b0e5ac57f30226cf258d1a555da6c2863d4a45 (patch)
tree4e197bdc495e57dfdc4eb5cac2c078be370d7703 /src/shared
parented0b16e2792e2e7cd6591da053ef5f737736a98d (diff)
shared/machine-pool: fix mkfs.btrfs checking
binary_is_good translates ENOENT to 0 See https://github.com/systemd/systemd/commit/85eca92e#diff-bcad68c477b6651521e880c40b7a9b40R813
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/machine-pool.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/machine-pool.c b/src/shared/machine-pool.c
index f080b849a4..e0bad035b6 100644
--- a/src/shared/machine-pool.c
+++ b/src/shared/machine-pool.c
@@ -239,10 +239,8 @@ int setup_machine_directory(uint64_t size, sd_bus_error *error) {
}
r = mkfs_exists("btrfs");
- if (r == -ENOENT) {
- log_debug("mkfs.btrfs is missing, cannot create loopback file for /var/lib/machines.");
- return 0;
- }
+ if (r == 0)
+ return sd_bus_error_set_errnof(error, ENOENT, "Cannot set up /var/lib/machines, mkfs.btrfs is missing");
if (r < 0)
return r;