Skip to content

Commit

Permalink
Enforce mount options for podman
Browse files Browse the repository at this point in the history
  • Loading branch information
efrecon committed Apr 5, 2024
1 parent 6b8ecce commit 7ce876f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/microvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ microvm_run() {
if [ -n "$KRUNVM_RUNNER_VOLS" ]; then
while IFS= read -r mount || [ -n "$mount" ]; do
if [ -n "$mount" ]; then
set -- --volume "$mount" "$@"
set -- --volume "${mount}:Z,rw" "$@"
fi
done <<EOF
$(printf %s\\n "$KRUNVM_RUNNER_VOLS")
EOF
fi
verbose "Starting container '${KRUNVM_RUNNER_NAME}' with entrypoint $KRUNVM_RUNNER_ENTRYPOINT"
trace "Running: podman run $*"
podman run "$@"
;;
krunvm)
Expand Down

0 comments on commit 7ce876f

Please sign in to comment.