mirror of https://github.com/dynup/kpatch
kpatch-build: use Module.symvers for the target kernel
Before this fix, kpatch-build looked for Module.symvers for the core module built for the currently running kernel. So, if one tried to build a patch module for a kernel, different from the current one, an error would occur. This patch fixed the problem. Signed-off-by: Evgenii Shatokhin <eshatokhin@odin.com>
This commit is contained in:
parent
d444caa907
commit
cba3081d59
|
@ -103,7 +103,7 @@ find_dirs() {
|
|||
# installation path
|
||||
TOOLSDIR="$(readlink -f $SCRIPTDIR/../libexec/kpatch)"
|
||||
DATADIR="$(readlink -f $SCRIPTDIR/../share/kpatch)"
|
||||
SYMVERSFILE="$(readlink -f $SCRIPTDIR/../lib/kpatch/$(uname -r)/Module.symvers)"
|
||||
SYMVERSFILE="$(readlink -f $SCRIPTDIR/../lib/kpatch/$ARCHVERSION/Module.symvers)"
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue