diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 1fbac72..b31d69d 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -365,7 +365,7 @@ else clean_cache - mv "$(rpm --eval %{_builddir})"/kernel-*/linux-"$ARCHVERSION" "$SRCDIR" >> "$LOGFILE" 2>&1 || die + mv "$(rpm --eval %{_builddir})"/kernel-*/linux-"${ARCHVERSION%.*}"*"${ARCHVERSION##*.}" "$SRCDIR" >> "$LOGFILE" 2>&1 || die cp "$SRCDIR/.config" "$OBJDIR" || die if [[ "$ARCHVERSION" == *-* ]]; then