]> git.ipfire.org Git - thirdparty/dracut.git/commit
base: Set udevd log level via environment var to cover early startup.
authorColin Guthrie <colin@mageia.org>
Mon, 10 Nov 2014 14:17:39 +0000 (14:17 +0000)
committerHarald Hoyer <harald@redhat.com>
Wed, 12 Nov 2014 12:25:27 +0000 (13:25 +0100)
commitaf67d62151b0c4708c4478cc5b2cbdaae5803699
tree0cbbb7849ef9ab8a8afbc63b2649a428771029e4
parent027565d0233f76edf434b63a847a717185d267e2
base: Set udevd log level via environment var to cover early startup.

udevd will these days default to 'info' logging and thus will
often print out the 'starting version nnn' message (which is
logged at level 'info'), thus spamming the console, even on
'quiet' boots.

We generally expect a udev log level of err (the old default
from pre-October 2013) so we should set that explicilty before
launching udevd in order to suppress the spurious 'info' message.

As we are using the environment variable approach anyway, we
may as well use this method rather than setting the log level
later via udevadm control commands when rd.udev.info/debug are
given on the kernel command line.

The enviroment variable has been around since udev 6b493a20e1
around 2005 so should be safe to use in all cases without version
checks.
modules.d/99base/init.sh