improve systemd preparations: remove /dev/kmsg inside the container
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 22:43:04 +0000 (23:43 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 7 Dec 2015 09:44:06 +0000 (10:44 +0100)
This is to cope with containers that have been created
not systemd-aware.

common/download.sh

index 92248e2af7c4e845eeb43bf28e7cbde70039b9bd..6204ed9a8480d5c2dfbaf556cf184b300f3b0859 100755 (executable)
@@ -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!"