1
0
Fork 0
concourse-kvm/runc-wrapper

18 lines
283 B
Bash
Executable File

#!/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 "$@"