pentoo-updater: make sure modules built, not just kernel

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-08-20 20:11:45 +00:00
parent 3337ecda50
commit 1198700974
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -67,7 +67,7 @@ update_kernel() {
currkern="$(uname -r)"
if [ "${currkern}" != "${bestkern}" ]; then
printf "Currently running kernel ${currkern} is out of date.\n"
if [ -x "/usr/src/linux-${bestkern}/vmlinux" ]; then
if [ -x "/usr/src/linux-${bestkern}/vmlinux" ] && [ -r "/lib/modules/${bestkern}/modules.dep" ]; then
printf "Kernel ${bestkern} appears ready to go, please reboot when convenient.\n"
else
printf "Updated kernel ${bestkern} available, building...\n"