From 5de430f006b9b77e8bab7afa3cd3128f63f0087f Mon Sep 17 00:00:00 2001 From: Wardenjohn Date: Tue, 9 Jan 2024 16:05:51 +0800 Subject: [PATCH] kpatch-build: move to fix vermagic The archversion should move to the outsize condiction. Otherwise, the missing extraversion may still exist. --- 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 3d77a67..c707fec 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -861,8 +861,8 @@ if [[ -n "$USERSRCDIR" ]]; then if [[ -z "$ARCHVERSION" ]] && [[ -f "$CONFIGFILE" ]]; then ARCHVERSION="$(kernel_version_from_config)" fi - sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -${ARCHVERSION##*-}/" "$KERNEL_SRCDIR/Makefile" || die fi + sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -${ARCHVERSION##*-}/" "$KERNEL_SRCDIR/Makefile" || die fi if [[ -n "$OOT_MODULE" ]]; then -- Gitee