From: Lennart Poettering Date: Wed, 13 Nov 2024 11:14:53 +0000 (+0100) Subject: nspawn: --private-users-ownership= value is called 'chown', not 'own' X-Git-Tag: v257-rc2~7 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=bae936b418e08063b68c95f4df53c3cd4f70e881;p=systemd%2F.git nspawn: --private-users-ownership= value is called 'chown', not 'own' --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 64f8ecdd7d..5dd289c1b4 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -477,7 +477,8 @@ static int custom_mount_check_all(void) { if (path_equal(m->destination, "/") && arg_userns_mode != USER_NAMESPACE_NO) { if (arg_userns_ownership != USER_NAMESPACE_OWNERSHIP_OFF) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), - "--private-users-ownership=own may not be combined with custom root mounts."); + "--private-users-ownership=%s may not be combined with custom root mounts.", + user_namespace_ownership_to_string(arg_userns_ownership)); if (arg_uid_shift == UID_INVALID) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--private-users with automatic UID shift may not be combined with custom root mounts.");