]> git.openfabrics.org - ~aditr/compat.git/commitdiff
compat: only use PPA kernels
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 2 Apr 2012 22:04:04 +0000 (15:04 -0700)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 2 Apr 2012 22:04:04 +0000 (15:04 -0700)
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>
bin/ckmake

index 2d9a5ebe6c9ea1adbce87218917911938e8b3a1c..8238436f11b4574a6452e41896eeae2ba04f824b 100755 (executable)
@@ -29,7 +29,7 @@ LOG="ckmake.log"
 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
        ;;