Skip to content

Commit a559787

Browse files
authored
Merge pull request #1463 from KosukeH-he/add_almalinux
Added support for AlmaLinux
2 parents 491337a + 3ffcc4e commit a559787

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

kpatch-build/kpatch-build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ declare -rA SUPPORTED_RPM_DISTROS=(
8080
["ol"]="Oracle"
8181
["photon"]="Photon OS"
8282
["rhel"]="RHEL"
83+
["almalinux"]="AlmaLinux"
8384
["amzn"]="Amazon Linux")
8485

8586

@@ -1399,7 +1400,7 @@ for i in $FILES; do
13991400
# In RHEL 7 based kernels, copy_user_64.o misuses the .fixup section,
14001401
# which confuses create-diff-object. It's fine to skip it, it's an
14011402
# assembly file anyway.
1402-
[[ "$DISTRO" = rhel ]] || [[ "$DISTRO" = centos ]] || [[ "$DISTRO" = ol ]] && \
1403+
[[ "$DISTRO" = rhel ]] || [[ "$DISTRO" = centos ]] || [[ "$DISTRO" = almalinux ]] || [[ "$DISTRO" = ol ]] && \
14031404
[[ "$i" = arch/x86/lib/copy_user_64.o ]] && continue
14041405

14051406
[[ "$i" = usr/initramfs_data.o ]] && continue

test/integration/almalinux-9.5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rhel-9.5

test/integration/almalinux-9.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rhel-9.6

test/integration/lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ kpatch_rhel_dependencies()
7979
fi
8080
}
8181

82+
kpatch_almalinux_dependencies()
83+
{
84+
kpatch_rhel_dependencies
85+
}
86+
8287
kpatch_centos_dependencies()
8388
{
8489
kpatch_rhel_dependencies

0 commit comments

Comments
 (0)