mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
shared/machine-pool: fix mkfs.btrfs checking
binary_is_good translates ENOENT to 0 See https://github.com/systemd/systemd/commit/85eca92e#diff-bcad68c477b6651521e880c40b7a9b40R813
This commit is contained in:
parent
ed0b16e279
commit
c3b0e5ac57
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user