From 38d12fa1245c6a8101dafbe2bf999c2d27b5f06e Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 15 Apr 2025 14:06:04 +0200 Subject: [PATCH] nixos/tests/gitlab: adjust test for ssh-root-provision The sshd nixos module now creates /root/.ssh via systemd-tmpfiles, so manually creating it with mkdir without -p will fail. Unfortunately, the test still fails due to an unrelated issue which seems to be an instance of https://gitlab.com/gitlab-org/gitlab/-/issues/434331 from a cursory look. I am having trouble figuring this out since I don't know anything about GitLab. --- nixos/tests/gitlab.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/tests/gitlab.nix b/nixos/tests/gitlab.nix index da27cfbbc195c..e04cac7aac77f 100644 --- a/nixos/tests/gitlab.nix +++ b/nixos/tests/gitlab.nix @@ -249,7 +249,6 @@ in with subtest("Setup Git and SSH for Alice"): gitlab.succeed("git config --global user.name Alice") gitlab.succeed("git config --global user.email alice@nixos.invalid") - gitlab.succeed("mkdir -m 700 /root/.ssh") gitlab.succeed("cat ${snakeOilPrivateKey} > /root/.ssh/id_ecdsa") gitlab.succeed("chmod 600 /root/.ssh/id_ecdsa") gitlab.succeed(