From: Daniel Lezcano Date: Sun, 23 Jan 2011 20:47:12 +0000 (+0100) Subject: suppress udev log output X-Git-Tag: lxc-0.7.4-rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=434d90db57e3d94609b48e2bc3c17777e56eac3a;p=thirdparty%2Flxc.git 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 --- 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