From a936c44d247024cfad40fbe5f487ee2aa087692b Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 18 Aug 2021 12:53:38 +0000 Subject: [PATCH] devcontainer: run container with privileges Needed to actually execute osbuild in the container, since it needs to mount and access loop devices. --- .devcontainer/devcontainer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 250cb7b99..0c5667389 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,8 +4,14 @@ "dockerfile": "Dockerfile", "context": ".." }, + "mounts": [ + "source=osbuild-share,target=/root/.local/share,type=volume" + ], + "runArgs": [ + "--privileged" + ], "extensions": [ "laurenttreguier.rpm-spec", "golang.Go" ] -} +} \ No newline at end of file