From 43f8683cd721127f186206181cc01b458a4866a5 Mon Sep 17 00:00:00 2001 From: Jessica Yu Date: Mon, 23 Jan 2017 22:39:05 -0800 Subject: [PATCH] kpatch-build: rename kpatch-tmp.ko to tmp.ko Rename kpatch-tmp.ko to tmp.ko, since create-klp-module will run into issues if we happen to have a patch named tmp.patch --- kpatch-build/kpatch-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 54943d0..8e55883 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -665,8 +665,8 @@ if ! $KPATCH_MODULE; then if [[ -z "$KPATCH_LDFLAGS" ]]; then extra_flags="--no-klp-arch-sections" fi - cp $TEMPDIR/patch/kpatch-$PATCHNAME.ko $TEMPDIR/patch/kpatch-tmp.ko || die - "$TOOLSDIR"/create-klp-module $extra_flags $TEMPDIR/patch/kpatch-tmp.ko $TEMPDIR/patch/kpatch-$PATCHNAME.ko 2>&1 |tee -a "$LOGFILE" + cp $TEMPDIR/patch/kpatch-$PATCHNAME.ko $TEMPDIR/patch/tmp.ko || die + "$TOOLSDIR"/create-klp-module $extra_flags $TEMPDIR/patch/tmp.ko $TEMPDIR/patch/kpatch-$PATCHNAME.ko 2>&1 |tee -a "$LOGFILE" check_pipe_status create-klp-module fi