mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
nspawn: silence warning about failure in getting fuse version
Follow-up for dc3223919f
.
If nspawn is invoked with DevicePolicy= but DeviceAllow= does not
contain /dev/fuse, nspawn will fail to get fuse version with -EPERM.
Let's silence the warning in that case.
This commit is contained in:
parent
6e207b370e
commit
330e44e293
@ -2211,7 +2211,8 @@ static bool should_enable_fuse(void) {
|
||||
else if (ERRNO_IS_NEG_NOT_SUPPORTED(r))
|
||||
log_debug_errno(r, "Disabling FUSE: Kernel does not support the fsopen() family of syscalls: %m");
|
||||
else
|
||||
log_warning_errno(r, "Disabling FUSE: Failed to determine FUSE version: %m");
|
||||
log_full_errno(ERRNO_IS_NEG_PRIVILEGE(r) ? LOG_DEBUG : LOG_WARNING, r,
|
||||
"Disabling FUSE: Failed to determine FUSE version: %m");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user