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:
parent
76cbb0fc89
commit
381fafc041
1 changed files with 2 additions and 0 deletions
|
@ -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!"
|
||||||
|
|
Loading…
Reference in a new issue