From 381fafc041b34e1dac386c004fcee74ce79f36a7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 8 Jan 2015 23:43:04 +0100 Subject: [PATCH] improve systemd preparations: remove /dev/kmsg inside the container This is to cope with containers that have been created not systemd-aware. --- common/download.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/download.sh b/common/download.sh index 92248e2..6204ed9 100755 --- a/common/download.sh +++ b/common/download.sh @@ -60,6 +60,8 @@ then echo "lxc.kmsg = 0" >> /var/lib/lxc/${CONTAINER}/config echo "lxc.autodev = 1" >> /var/lib/lxc/${CONTAINER}/config utils.lxc.start + utils.lxc.attach rm -f /dev/kmsg + utils.lxc.stop fi log "Container created!"