Skip to content

Commit

Permalink
codespace: Run chown as postStartCommand
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
perlpunk committed Jun 17, 2024
1 parent f8b72cc commit 18eefbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 18eefbc

Please sign in to comment.