From 0368c1484d9a24290c69338f339bbf6fa85cbc7c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 13 Nov 2024 12:14:53 +0100 Subject: [PATCH] nspawn: --private-users-ownership= value is called 'chown', not 'own' (cherry picked from commit bae936b418e08063b68c95f4df53c3cd4f70e881) (cherry picked from commit bdf3f9b8f274d958befa54c95811910013b39a80) (cherry picked from commit 809b265172dd391e7fe4c105e5979e07b832a180) --- src/nspawn/nspawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index e698047f2e..5b20b4a773 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -475,7 +475,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.");