11 lines
264 B
Plaintext
11 lines
264 B
Plaintext
|
#!/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 "$@"
|