mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 03:15:00 +00:00
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:
parent
27b39fd49d
commit
434d90db57
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user