config: support for genkernel kernel config file

Add support for distributions using genkernel.
This commit is contained in:
David Guglielmi 2018-08-21 11:14:41 +02:00
parent b2f64e1132
commit 15d1bb2e4d
No known key found for this signature in database
GPG Key ID: 1642DEF553D8A29E
1 changed files with 2 additions and 0 deletions

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"