This skips non-PPA kernels for Ubuntu with ckmake.
This lets a machine host as many kernelas it wants but
we stick to only using the PPA mainline vanilla kernels.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
case $LSB_RED_ID in
"Ubuntu")
- for i in $(find /lib/modules/ -type d -name \*generic\* | sort -n -r); do
+ for i in $(find /lib/modules/ -type d -name \*generic\* | sort -n -r | grep -v -E '\-[[:alnum:]]{1,2}\-'); do
KLIBS="$KLIBS $i"
done
;;