Description: only warn if kpatch module isn't available
 kpatch-build checks if the kpatch module is installed properly. In cases where we build
 livepatch modules this is not necessary. Turn these errors into warnings and let the user
 proceed.
Author: Chris J Arges <chris.j.arges@canonical.com>
Last-Update: 2016-01-20

--- a/kpatch-build/kpatch-build
+++ b/kpatch-build/kpatch-build
@@ -109,7 +109,6 @@
 			SYMVERSFILE="$(readlink -f /lib/modules/$ARCHVERSION/updates/dkms/kpatch.Module.symvers)"
 		else
 			warn "unable to find Module.symvers for kpatch core module"
-			return 1
 		fi
 		return
 	fi
@@ -340,7 +339,7 @@
 
 find_dirs || die "can't find supporting tools"
 
-[[ -e "$SYMVERSFILE" ]] || die "can't find core module Module.symvers"
+[[ -e "$SYMVERSFILE" ]] || warn "can't find core module Module.symvers"
 
 
 if [[ $SKIPGCCCHECK -eq 0 ]]; then
