summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2022-11-06 16:31:16 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-11-07 14:11:34 +1000
commit58a59738d5420fbf5b320a0ece48e58664b1a309 (patch)
treeb1df638f923d459426a9e13ee2aaa3361a52c46f /nixos
parentbbfdc6ce4d312b56aa57b38f23c88d339430b38c (diff)
nixos/tests/podman: fix rootless systemd
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/podman/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/podman/default.nix b/nixos/tests/podman/default.nix
index 44da1410918a0..106ba2057d063 100644
--- a/nixos/tests/podman/default.nix
+++ b/nixos/tests/podman/default.nix
@@ -73,8 +73,10 @@ import ../make-test-python.nix (
           podman.succeed("podman stop sleeping")
           podman.succeed("podman rm sleeping")
 
-      # create systemd session for rootless
+      # start systemd session for rootless
       podman.succeed("loginctl enable-linger alice")
+      podman.succeed(su_cmd("whoami"))
+      podman.sleep(1)
 
       with subtest("Run container rootless with runc"):
           podman.succeed(su_cmd("tar cv --files-from /dev/null | podman import - scratchimg"))