diff options
author | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-01-23 21:47:12 +0100 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2011-01-23 21:47:12 +0100 |
commit | 434d90db57e3d94609b48e2bc3c17777e56eac3a (patch) | |
tree | 83e7af04bab7b3051f59b7de3ee9b076d25901f7 | |
parent | Update ubuntu templates (diff) | |
download | lxc-434d90db57e3d94609b48e2bc3c17777e56eac3a.tar.gz lxc-434d90db57e3d94609b48e2bc3c17777e56eac3a.tar.bz2 lxc-434d90db57e3d94609b48e2bc3c17777e56eac3a.zip |
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 <dlezcano@fr.ibm.com>
-rw-r--r-- | templates/lxc-maverick.in | 3 | ||||
-rw-r--r-- | templates/lxc-natty.in | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/templates/lxc-maverick.in b/templates/lxc-maverick.in index 917d780..a85a6ca 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 91c4a30..c71596e 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 |