1
0
Fork 0
concourse-kvm/runc-wrapper

11 lines
264 B
Bash

#!/bin/sh
RUNC=${RUNC:=runc}
if [ -f config.json ]; then
mv config.json config.old.json
jq -c '.mounts |= . + [{ "destination": "/dev/kvm", "type": "bind", "source": "/dev/kvm", "options": [ "bind", "rw" ] }]' config.old.json > config.json
fi
exec $RUNC "$@"