Skip to content

Commit f54e231

Browse files
committed
updating changes
1 parent 429978e commit f54e231

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
"--device=/dev/kvm"
1818
],
1919

20-
// Use 'postCreateCommand' to run commands after the container is created
21-
"postCreateCommand": "bash .devcontainer/setup.sh",
22-
23-
// Runs each time the container starts/restarts and set kvm permissions
20+
// Runs each time the container starts/restarts
2421
"postStartCommand": "bash .devcontainer/setup.sh",
2522

2623
"customizations": {

.devcontainer/setup.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,3 @@
22

33
# Change device ownership
44
sudo chown -R $REMOTE_USER:$REMOTE_GROUP $DEVICE
5-
6-
# Check for the KVM device and adjust permissions.
7-
if [ -e /dev/kvm ]; then
8-
sudo chown root:kvm /dev/kvm
9-
sudo chmod 660 /dev/kvm
10-
sudo usermod -aG kvm vscode
11-
else
12-
echo 'KVM device not found, skipping...'
13-
fi

0 commit comments

Comments
 (0)