From 052f2d8b25177f89c09e73e92443524e63bf0312 Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Tue, 18 Feb 2014 11:08:15 -0600 Subject: [PATCH] fix calling of kpatch-build from git dir When calling kpatch-build from the git directory, the patch kmod build fails because it can't find kpatch.h because the symlink is broken. Copy the kpatch.h file (instead of the symlink) to TEMPDIR. --- kpatch-build/kpatch-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 7b44a2e..6c42601 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -109,7 +109,7 @@ fi find_data_dir || (echo "can't find data dir" >&2 && die) -cp -R "$DATADIR/patch" "$TEMPDIR" || die +cp -LR "$DATADIR/patch" "$TEMPDIR" || die cp vmlinux "$TEMPDIR" || die echo "Building patched kernel"