From 302f691beef5a8977f22b14d718c922bd47303db Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Wed, 17 Jan 2024 21:01:49 +0100 Subject: [PATCH] podman: enforce runtime=runc With the default crun runtime of podman, "osc build" fails because the --mount option with destination=/ doesn't seem to be supported: Error: OCI runtime error: crun: mount `/mnt/git/build-root/15.5-x86_64/.mount` to ``: Invalid argument fcrozat told me on Slack that setting runc as runtime works, and indeed it does. But if build depends on this, it should rather set this runtime explitly. Signed-off-by: Martin Wilck --- build-vm-podman | 1 + 1 file changed, 1 insertion(+) diff --git a/build-vm-podman b/build-vm-podman index 743842f8f..3c66323ed 100644 --- a/build-vm-podman +++ b/build-vm-podman @@ -33,6 +33,7 @@ vm_startup_podman() { local podman_opts= test -n "$VM_TYPE_PRIVILEGED" && podman_opts="--privileged --cap-add=SYS_ADMIN --cap-add=MKNOD" podman run \ + --runtime=runc \ --rm --name "$name" --net=none $podman_opts \ --mount "type=bind,source=$BUILD_ROOT,destination=/" \ "$@" build-scratch:latest "$vm_init_script"