Commit 434d90db by Daniel Lezcano Committed by Daniel Lezcano

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: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 27b39fd4
...@@ -48,6 +48,9 @@ EOF ...@@ -48,6 +48,9 @@ EOF
127.0.0.1 localhost $hostname 127.0.0.1 localhost $hostname
EOF EOF
# suppress log level output for udev
sed -i "s/=\"err\"/=0/" $rootfs/etc/udev/udev.conf
# tweak consoles # tweak consoles
rm -f $rootfs/etc/init/tty{5,6}.conf rm -f $rootfs/etc/init/tty{5,6}.conf
cp $rootfs/etc/init/tty1.conf $rootfs/etc/init/console.conf cp $rootfs/etc/init/tty1.conf $rootfs/etc/init/console.conf
......
...@@ -49,6 +49,9 @@ EOF ...@@ -49,6 +49,9 @@ EOF
127.0.0.1 localhost $hostname 127.0.0.1 localhost $hostname
EOF EOF
# suppress log level output for udev
sed -i "s/=\"err\"/=0/" $rootfs/etc/udev/udev.conf
# tweak consoles # tweak consoles
rm -f $rootfs/etc/init/tty{5,6}.conf rm -f $rootfs/etc/init/tty{5,6}.conf
cp $rootfs/etc/init/tty1.conf $rootfs/etc/init/console.conf cp $rootfs/etc/init/tty1.conf $rootfs/etc/init/console.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment