If kernel is already tainted, not all tests yield usable results.
Printing the taint cause might help users tracking down the external
cause.
If a test taints the kernel, the value is stored in rc-failed-tainted
file already.
Signed-off-by: Phil Sutter <phil@nwl.cc>
read kernel_tainted < /proc/sys/kernel/tainted
if [ "$kernel_tainted" -ne 0 ] ; then
- msg_warn "kernel is tainted"
+ msg_warn "kernel is tainted ($kernel_tainted)"
echo
fi