mirror of https://github.com/dynup/kpatch
add openEuler build support
This commit is contained in:
parent
6de60e79b7
commit
eaaced1912
|
@ -696,7 +696,7 @@ fi
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
[[ -f "$RELEASE_FILE" ]] && source "$RELEASE_FILE"
|
[[ -f "$RELEASE_FILE" ]] && source "$RELEASE_FILE"
|
||||||
DISTRO="$ID"
|
DISTRO="$ID"
|
||||||
if [[ "$DISTRO" = fedora ]] || [[ "$DISTRO" = rhel ]] || [[ "$DISTRO" = ol ]] || [[ "$DISTRO" = centos ]]; then
|
if [[ "$DISTRO" = fedora ]] || [[ "$DISTRO" = rhel ]] || [[ "$DISTRO" = ol ]] || [[ "$DISTRO" = centos ]] || [[ "$DISTRO" = openEuler ]]; then
|
||||||
[[ -z "$VMLINUX" ]] && VMLINUX="/usr/lib/debug/lib/modules/$ARCHVERSION/vmlinux"
|
[[ -z "$VMLINUX" ]] && VMLINUX="/usr/lib/debug/lib/modules/$ARCHVERSION/vmlinux"
|
||||||
[[ -e "$VMLINUX" ]] || die "kernel-debuginfo-$ARCHVERSION not installed"
|
[[ -e "$VMLINUX" ]] || die "kernel-debuginfo-$ARCHVERSION not installed"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue