1 lbuild does not install the kernel source in the standard RHEL7 location.
2 RHEL's kmodtool (starting in RHEL7) expects the source to be in the standard
3 location, and when it fails to find it it adds an extra $arch onto the end
4 of verrel. With lbuild, verrel already contains the arch, so we change the
5 kmodtool script so that it does not add another.
7 --- old/kmodtool 2016-06-07 14:36:20.810907740 -0700
8 +++ new/kmodtool 2016-06-07 14:37:55.335652424 -0700
9 @@ -62,7 +62,7 @@ get_kernel_release ()
10 local versuffix=${verrel#$verprefix}
11 verrel=$(ls -Ud /usr/src/kernels/$verprefix*$versuffix.$arch | sort -V | tail -n 1)
13 - [[ -z $verrel ]] && verrel=$1.$arch
14 + [[ -z $verrel ]] && verrel=$1