Skip to content

Commit d2b707f

Browse files
authored
Merge pull request #277 from rtulchii/new-lts-installation-steps
2 parents 71e1e88 + a3942bd commit d2b707f

File tree

1 file changed

+39
-12
lines changed
  • docs/cloudlinuxos/cloudlinux_os_kernel

1 file changed

+39
-12
lines changed

docs/cloudlinuxos/cloudlinux_os_kernel/README.md

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This documentation describes specific features of the CloudLinux kernel. In other cases the kernel has the same features and innovations as any similar RHEL kernel.
44
More information about the actual kernel changes and releases can be obtained from our [changelog](https://changelog.cloudlinux.com/).
55

6-
* [CL9 LTS kernel](./#cl9-lts-kernel)
6+
* [LTS kernel](./#lts-kernel)
77
* [Hybrid Kernels](./#hybrid-kernels)
88
* [SecureLinks and Link Traversal Protection](./#securelinks-and-link-traversal-protection)
99
* [File change API](./#file-change-api)
@@ -21,41 +21,68 @@ More information about the actual kernel changes and releases can be obtained fr
2121
* [Enter LVE when using cPanel utilities](./#enter-lve-when-using-cpanel-utilities)
2222
* [Proactive reporting kernel crash events with Sentry and Kernel Panic Receiver](./#proactive-reporting-kernel-crash-events-with-sentry-and-kernel-panic-receiver)
2323

24-
## CL9 LTS kernel
24+
## LTS kernel
2525

2626
In CL9 we don’t have our own kernel, instead we use AlmaLinux’s one which gets regular upstream updates.
2727

2828
For stability purposes we have also prepared the LTS (Long Term Support) kernel which is older than AlmaLinux by upstream version but has all security fixes / high scored CVEs.
2929

3030
We recommend this kernel as it minimizes changes while maintaining comprehensive CVE coverage.
3131

32+
Also, this kernel is available for CL8 serving as an analogue of Hybrid kernel (CL9 LTS kernel + CL8 system).
33+
3234
### How To Install
3335

34-
Run the following commands:
36+
The LTS kernel is compatible with CL8 / CL9 systems.
37+
38+
Install the LTS kernel main packages
3539

3640
```
37-
dnf install -y --allowerasing kernel-lts kmod-lve-lts perf-lts bpftool-lts
38-
```
39-
In case you have dkms third-party modules that need devel package you should install them too:
40-
```
41-
dnf install -y kernel-lts-devel kernel-lts-devel-matched
41+
dnf install kernel-lts
4242
```
43+
::: tip Note
44+
If kernel-lts-purge-all was previously installed then add --allowerasing
45+
:::
4346

4447
After that, you should reboot:
4548

4649
```
4750
reboot
4851
```
52+
::: tip Note
53+
Some systems might do additional SELinux relabeling and they will reboot one more time.
54+
:::
4955

50-
After the reboot, you should delete regular kernels to prevent regular updates from overwriting default boot kernel:
56+
After the reboot, replace all kernel packages with LTS versions
5157
```
52-
dnf remove kernel-core
58+
dnf install --allowerasing kernel-lts-install-all
5359
```
60+
This will:
61+
- Install all matching -lts tools (e.g., perf-lts, bpftool-lts, etc.)
62+
- Remove kernel-core to avoid accidental switch to it on updates
63+
- Remove original kernel tools packages to avoid file conflicts
64+
65+
### Reverting to the Original Kernel Environment
5466

55-
You should see the similar dnf output:
67+
Use this path to return from the LTS kernel to the generic kernel.
5668

57-
![](/images/dnf-cl9-lts.png)
69+
Install the original kernel core
70+
```
71+
dnf install --allowerasing kernel
72+
```
5873

74+
After that, you should reboot:
75+
```
76+
reboot
77+
```
78+
79+
Replace all LTS kernel packages with original versions
80+
```
81+
dnf install --allowerasing kernel-lts-purge-all
82+
```
83+
This will:
84+
- Install original versions of tools (e.g., perf, bpftool, etc.)
85+
- Remove all -lts packages (except kernel-lts-purge-all itself, it's ok to remove it later, but not required)
5986

6087
## Hybrid Kernels
6188

0 commit comments

Comments
 (0)