feat(config): support for genkernel kernel config file (#239)

Add support for distributions using genkernel.
This commit is contained in:
David Guglielmi 2018-08-28 20:24:37 +02:00 committed by Stéphane Lesimple
parent b2f64e1132
commit e8890ffac6

View File

@ -1487,6 +1487,8 @@ if [ "$opt_live" = 1 ]; then
opt_config="/lib/modules/$(uname -r)/config"
elif [ -e "/boot/config-$(uname -r)" ]; then
opt_config="/boot/config-$(uname -r)"
elif [ -e "/etc/kernels/kernel-config-$(uname -m)-$(uname -r)" ]; then
opt_config="/etc/kernels/kernel-config-$(uname -m)-$(uname -r)"
fi
else
_info "Checking for vulnerabilities against specified kernel"