kpatch: upgrade 0.8.0 -> 0.9.0

refresh the following patch:
0002-kpatch-build-allow-overriding-of-distro-name.patch

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Wang Mingyu
2020-02-21 07:24:14 -08:00
committed by Khem Raj
parent e10d2bdede
commit 247b9dff37
2 changed files with 5 additions and 5 deletions

View File

@@ -48,10 +48,10 @@ index 39933fc..c0258a2 100755
--skip-cleanup)
echo "Skipping cleanup"
SKIPCLEANUP=1
@@ -571,7 +576,7 @@ fi
@@ -613,7 +613,7 @@ fi
# Don't check external file.
# shellcheck disable=SC1091
source /etc/os-release
# shellcheck disable=SC1090
[[ -f "$RELEASE_FILE" ]] && source "$RELEASE_FILE"
-DISTRO="$ID"
+DISTRO="${DISTRO:-${ID}}"
if [[ "$DISTRO" = fedora ]] || [[ "$DISTRO" = rhel ]] || [[ "$DISTRO" = ol ]] || [[ "$DISTRO" = centos ]]; then