]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: --private-users-ownership= value is called 'chown', not 'own'
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Nov 2024 11:14:53 +0000 (12:14 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 15 Nov 2024 13:34:59 +0000 (13:34 +0000)
src/nspawn/nspawn.c

index 64f8ecdd7dbc51ab27a1380b574ea34daed9cfad..5dd289c1b463d219d0e5775a537185049b6f37e2 100644 (file)
@@ -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.");