diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 92077866a2..86d03399e9 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -4067,7 +4067,7 @@ static int outer_child( return r; if (arg_read_only && arg_volatile_mode == VOLATILE_NO && - !has_custom_root_mount(arg_custom_mounts, arg_n_custom_mounts)) { + !has_custom_root_mount(arg_custom_mounts, arg_n_custom_mounts)) { r = bind_remount_recursive(directory, MS_RDONLY, MS_RDONLY, NULL); if (r < 0) return log_error_errno(r, "Failed to make tree read-only: %m");