Skip to content

Commit

Permalink
podman: enforce runtime=runc
Browse files Browse the repository at this point in the history
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 <mwilck@suse.com>
  • Loading branch information
mwilck committed Jan 17, 2024
1 parent 44e43ab commit 302f691
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build-vm-podman
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 302f691

Please sign in to comment.