improve systemd preparations: remove /dev/kmsg inside the container

This is to cope with containers that have been created
not systemd-aware.
This commit is contained in:
Michael Adam 2015-01-08 23:43:04 +01:00
parent 76cbb0fc89
commit 381fafc041

View file

@ -60,6 +60,8 @@ then
echo "lxc.kmsg = 0" >> /var/lib/lxc/${CONTAINER}/config echo "lxc.kmsg = 0" >> /var/lib/lxc/${CONTAINER}/config
echo "lxc.autodev = 1" >> /var/lib/lxc/${CONTAINER}/config echo "lxc.autodev = 1" >> /var/lib/lxc/${CONTAINER}/config
utils.lxc.start utils.lxc.start
utils.lxc.attach rm -f /dev/kmsg
utils.lxc.stop
fi fi
log "Container created!" log "Container created!"