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>
This commit is contained in:
Daniel Lezcano 2011-01-23 21:47:12 +01:00 committed by Daniel Lezcano
parent 27b39fd49d
commit 434d90db57
2 changed files with 6 additions and 0 deletions

View 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

View 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