From 6b1af5079ce7cd9c04d96542f44be782533eebb3 Mon Sep 17 00:00:00 2001 From: adaniaud Date: Tue, 18 Nov 2025 21:36:30 +0800 Subject: [PATCH] Add support for Rocky Linux --- doc/INSTALL.md | 6 ++---- kpatch-build/kpatch-build | 3 ++- test/integration/lib.sh | 5 +++++ test/integration/rocky9.4 | 1 + test/integration/rocky9.5 | 1 + test/integration/rocky9.6 | 1 + test/integration/rocky9.7 | 1 + 7 files changed, 13 insertions(+), 5 deletions(-) create mode 120000 test/integration/rocky9.4 create mode 120000 test/integration/rocky9.5 create mode 120000 test/integration/rocky9.6 create mode 120000 test/integration/rocky9.7 diff --git a/doc/INSTALL.md b/doc/INSTALL.md index b67a586eb..6b0370f20 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -5,7 +5,7 @@ Table of contents ================= - [Prerequisites](#prerequisites) - - [Fedora, RHEL, CentOS](#fedora-rhel-centos) + - [Fedora, RHEL, CentOS, Rocky](#fedora-rhel-centos-rocky) - [Oracle Linux 7](#oracle-linux-7) - [Ubuntu](#ubuntu) - [Debian 9 (Stretch)](#debian-9-stretch) @@ -24,7 +24,7 @@ Before starting, see [Supported Architectures](../README.md#supported-architectures) and check if your device's architecture is supported. -### Fedora, RHEL, CentOS +### Fedora, RHEL, CentOS, Rocky *NOTE: You'll need about 15GB of free disk space for the kpatch-build cache in `~/.kpatch` and for ccache.* @@ -312,5 +312,3 @@ OPTIONAL: Install kpatch to `/usr/local`: Alternatively, the kpatch and kpatch-build scripts can be run directly from the git tree. - - diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index b421c8eac..e2aa0df16 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -82,7 +82,8 @@ declare -rA SUPPORTED_RPM_DISTROS=( ["photon"]="Photon OS" ["rhel"]="RHEL" ["almalinux"]="AlmaLinux" - ["amzn"]="Amazon Linux") + ["amzn"]="Amazon Linux" + ["rocky"]="Rocky") warn() { diff --git a/test/integration/lib.sh b/test/integration/lib.sh index 1f1a79d85..2331fe626 100644 --- a/test/integration/lib.sh +++ b/test/integration/lib.sh @@ -94,6 +94,11 @@ kpatch_fedora_dependencies() kpatch_rhel_dependencies } +kpatch_rocky_dependencies() +{ + kpatch_rhel_dependencies +} + kpatch_openEuler_dependencies() { local kernel_version diff --git a/test/integration/rocky9.4 b/test/integration/rocky9.4 new file mode 120000 index 000000000..966c9af54 --- /dev/null +++ b/test/integration/rocky9.4 @@ -0,0 +1 @@ +rhel-9.4 \ No newline at end of file diff --git a/test/integration/rocky9.5 b/test/integration/rocky9.5 new file mode 120000 index 000000000..85a32790e --- /dev/null +++ b/test/integration/rocky9.5 @@ -0,0 +1 @@ +rhel-9.5 \ No newline at end of file diff --git a/test/integration/rocky9.6 b/test/integration/rocky9.6 new file mode 120000 index 000000000..cc7de3f01 --- /dev/null +++ b/test/integration/rocky9.6 @@ -0,0 +1 @@ +rhel-9.6 \ No newline at end of file diff --git a/test/integration/rocky9.7 b/test/integration/rocky9.7 new file mode 120000 index 000000000..d58766a37 --- /dev/null +++ b/test/integration/rocky9.7 @@ -0,0 +1 @@ +rhel-9.7 \ No newline at end of file