From 18eefbc7b1cbcb8092a5d0de631b615b9d6a5ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 17 Jun 2024 17:47:53 +0200 Subject: [PATCH] codespace: Run chown as postStartCommand Issue: https://progress.opensuse.org/issues/87695 It seems when run as postCreateCommand it is only run on creation, but not on recreation (when restarting a codespace). So currently after a restart the permissions are set back to what they were before. --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 025d339..9316201 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ "name": "openQA Single Instance", "image": "registry.opensuse.org/devel/openqa/containers15.5/openqa-single-instance", "runArgs": [ "--privileged", "--device", "/dev/kvm", "--entrypoint", "bash" ], - "postCreateCommand": "chown root:kvm /dev/kvm", + "postStartCommand": "chown root:kvm /dev/kvm", "containerEnv": { "VNCPORT_OFFSET": "100" },