openEuler old-kernel governance — the installonly default state and grubby management surface, DKMS/third-party module rebuild discipline
Verification scope
Section titled “Verification scope”This page’s evidence is a bare-metal + container dual track — VM 381 (24.03 LTS SP4, 2026-11-04): kernel packages/GRUB/grubby/dnf.conf verified in testing (evidence/logs/openeuler-p1-kernel-vm.log); container online repos: the update repo’s kernel version listed (evidence/logs/openeuler-p1-facts.log). Actual DKMS rebuilds were not executed in this environment (no third-party module samples; see the end of the page).
The default state verified: what a freshly installed openEuler looks like
Section titled “The default state verified: what a freshly installed openEuler looks like”$ rpm -q kernelkernel-6.6.0-159.4.3.154.oe2403sp4.x86_64 # the only kernel$ grubby --info=ALL | grep -E '^index|^title'index=0 title=openEuler (6.6.0-159.4.3.154…) # the only boot entryindex=1 title=openEuler (0-rescue-…) # the rescue entry$ grep installonly /etc/dnf/dnf.confinstallonly_limit=3On the repo side (online, verified): kernel-6.6.0-159.4.19.173.oe2403sp4 is in the update repo — continuous rolling within the 6.6 line, and dnf update kernel is exactly that channel.
grubby: the primary kernel management tool (verified command surface)
Section titled “grubby: the primary kernel management tool (verified command surface)”grubby --default-kernel # query the default kernel (verified output /boot/vmlinuz-6.6.0-…)grubby --default-title # query the default boot entry titlegrubby --info=ALL # all entries (kernel + rescue)grubby --set-default /boot/vmlinuz-<version> # pin the default (used when rolling back)Fully isomorphic to RHEL — EL ops experience transfers wholesale; openEuler-specific caveats live on kernel dual-track (crashkernel=512M in the default cmdline, etc.).
installonly rolling cleanup and the rollback window
Section titled “installonly rolling cleanup and the rollback window”The kernel is an installonly package: after a new kernel installs, old kernels are retained and the oldest rolls out (cap 3). Governance implications:
- Ordinary machines: the default 3 suffices (current + previous + a slot);
- Out-of-tree-module machines (dkms/commercial drivers/security agents): every kernel needs its own matching module set — a cap of 3 means the rollback window is a single kernel, and cleaning an old kernel without its modules leaves dead directories. On such machines, raise
installonly_limitto 5 and put it in the baseline.
Three disciplines for DKMS/third-party modules (operating surface)
Section titled “Three disciplines for DKMS/third-party modules (operating surface)”- Modules track kernel versions: before installing a third-party module, confirm it supports the 6.6 line (the
.oe2403sp4vermagic); after a kernel point update, modules need rebuilding (automatic with dkms, manual for hand-built packages); - Interlocked cleanup: before
dnf remove kernel-<old>, rundkms statusto confirm no modules still hang off that kernel (or remove the modules before deleting the kernel); - A fixed rollback flow: new kernel misbehaves →
grubby --set-defaultback to the previous kernel → observation period → then clean up the problem kernel (do not delete old kernels during the observation period).
Unverified
Section titled “Unverified”- End-to-end DKMS rebuild not executed (no third-party module samples; kernel-devel/headers are not installed with @core — the operating surface of
dnf install kernel-devel-$(uname -r)and family before installing modules is extended on the existing kernel-kmod page); - The full upgrade-reboot-rollback chain for online kernel updates not run (the VM retains the clean-base baseline; the mechanism surface is covered by the grubby/installonly verification);
- Rescue entry rebuild (after accidental deletion) not rehearsed.