mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
virt: debug log when inode_same() fails
If this fails with an error there's no log messages and tests typically don't log it either as they just check, so add a message to aid in debugging
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
6629107404
commit
4902a7f18d
@@ -830,7 +830,7 @@ int running_in_chroot(void) {
|
||||
return -ENOSYS;
|
||||
}
|
||||
if (r < 0)
|
||||
return r;
|
||||
return log_debug_errno(r, "Failed to check if /proc/1/root and / are the same inode: %m");
|
||||
|
||||
return r == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user