diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 14d1170..1b0d766 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -278,7 +278,7 @@ mkdir -p "$TEMPDIR" || die "Couldn't create $TEMPDIR" rm -rf "$TEMPDIR"/* rm -f "$LOGFILE" -trap cleanup EXIT INT TERM +trap cleanup EXIT INT TERM HUP KVER=${ARCHVERSION%%-*} if [[ $ARCHVERSION =~ - ]]; then