Skip to content

Commit

Permalink
kpatch-build: Support distro Anolis OS
Browse files Browse the repository at this point in the history
Support Anolis OS

Signed-off-by: Wardenjohn<[email protected]>
  • Loading branch information
zhangyongde.zyd committed Jan 17, 2024
1 parent 89c494f commit d511792
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ declare -rA SUPPORTED_DEB_DISTROS=(
["ubuntu"]="Ubuntu OS")

declare -rA SUPPORTED_RPM_DISTROS=(
["anolis"]="Anolis OS"
["centos"]="CentOS"
["fedora"]="Fedora"
["openEuler"]="OpenEuler"
Expand Down
12 changes: 12 additions & 0 deletions test/integration/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ kpatch_photon_dependencies()
fi
}

kpatch_anolis_dependencies()
{
local kernel_version
local arch
kernel_version=$(uname -r)
arch=$(uname -m)
sudo yum install -y make gcc patch bison flex openssl-devel dwarves \
rpm-build dnf-plugins-core python3-devel openssl-devel ncurses-devel elfutils-libelf-devel
sudo yum install -y "kernel-debuginfo-${kernel_version%.*}"\
"kernel-devel-${kernel_version%.*}"
}

kpatch_dependencies()
{
# shellcheck disable=SC1091
Expand Down

0 comments on commit d511792

Please sign in to comment.