]> git.proxmox.com Git - mirror_lxc.git/commitdiff
suppress udev log output
authorDaniel Lezcano <daniel.lezcano@free.fr>
Sun, 23 Jan 2011 20:47:12 +0000 (21:47 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 23 Jan 2011 20:47:12 +0000 (21:47 +0100)
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>
templates/lxc-maverick.in
templates/lxc-natty.in

index 917d780c9f77ed8886d250b00f30d18350abeb25..a85a6ca0cadfa9eea0dc2b7a53a24b5c2f5cc290 100644 (file)
@@ -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
index 91c4a30488b5de3d0eebf498c120e08bbab7cd20..c71596e3bb5d40ace60300c993cee9d9e37642e5 100644 (file)
@@ -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