From 434d90db57e3d94609b48e2bc3c17777e56eac3a Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Sun, 23 Jan 2011 21:47:12 +0100 Subject: [PATCH] suppress udev log output We use udev within these containers and we prevent the /dev files to be created with the cgroup whitelist. So when the udevd receives the event from the kernel, it will fail to create some nodes in /dev and will spit error on the console. We set the log level to zero, so udev will silently fail. Signed-off-by: Daniel Lezcano --- templates/lxc-maverick.in | 3 +++ templates/lxc-natty.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/lxc-maverick.in b/templates/lxc-maverick.in index 917d780c9..a85a6ca0c 100644 --- a/templates/lxc-maverick.in +++ b/templates/lxc-maverick.in @@ -48,6 +48,9 @@ EOF 127.0.0.1 localhost $hostname EOF + # suppress log level output for udev + sed -i "s/=\"err\"/=0/" $rootfs/etc/udev/udev.conf + # tweak consoles rm -f $rootfs/etc/init/tty{5,6}.conf cp $rootfs/etc/init/tty1.conf $rootfs/etc/init/console.conf diff --git a/templates/lxc-natty.in b/templates/lxc-natty.in index 91c4a3048..c71596e3b 100644 --- a/templates/lxc-natty.in +++ b/templates/lxc-natty.in @@ -49,6 +49,9 @@ EOF 127.0.0.1 localhost $hostname EOF + # suppress log level output for udev + sed -i "s/=\"err\"/=0/" $rootfs/etc/udev/udev.conf + # tweak consoles rm -f $rootfs/etc/init/tty{5,6}.conf cp $rootfs/etc/init/tty1.conf $rootfs/etc/init/console.conf