syscontainer, centos: read env variables from files

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2018-01-04 20:14:52 +01:00
parent 1f75ec82e1
commit b5167d4e8f
No known key found for this signature in database
GPG key ID: 263D6DF2E163E1EA

View file

@ -5,4 +5,7 @@ PID=$$
LABEL=`tr -d '\000' < /proc/$PID/attr/current`
printf %s $LABEL > /proc/self/attr/exec
test -e /etc/sysconfig/crio-storage && source /etc/sysconfig/crio-storage
test -e /etc/sysconfig/crio-network && source /etc/sysconfig/crio-network
exec /usr/bin/crio --log-level=$LOG_LEVEL