﻿# Check rebuilt GPU modules before booting a new kernel

Verify module state for the intended future kernel, then reserve actual admission and device checks for that kernel running in a controlled fixture.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-linux-dkms-kernel-upgrade/
Language: en

A node update installs a new kernel while its current GPU workload keeps running. That working workload proves the old boot's driver path, not that the next kernel has a usable module. Review the target kernel's build and installation evidence before treating a successful package transaction as readiness to introduce that kernel.

## Name the future target

Record the intended kernel release and architecture separately from the running kernel. Keep the driver module name and version attached to that target. An unqualified diagnostic can default to the currently running release, which answers the wrong question. Preserve the intended boot selection so the evidence can be compared with what actually starts during the later maintenance window.

## Distinguish source, built and installed

DKMS tracks module state for particular kernel and architecture combinations. Added source is not a built object, and a built object is not necessarily installed in the target module tree. Read the target-specific state and build output. A successful entry for another installed kernel does not cover the new one merely because the driver package name is identical.

## Check the target build inputs

Compare headers, configuration and other required build artifacts with the target kernel. A package manager can install the latest headers while the intended target differs. Build prerequisites for external modules remain necessary even when automation normally supplies them. Keep any failure log and its actual target identity rather than assuming the absence of a visible package error means every hook completed.

## Separate installation from admission

A target module artifact still needs compatible dependency metadata and the applicable trust policy. An offline file check cannot exercise every aspect of a future kernel's actual module admission and device initialization. State that limit explicitly. The current running module cannot be replaced merely to make a preboot check appear more complete on an occupied node.

## Define the later acceptance point

Use an isolated maintenance fixture for the selected target, then observe the running release, admitted module and bounded device operation after boot. Compare these identities with the preboot record. Acceptance links preparation to actual integration. It does not guarantee model readiness, automatic success of future updates or uninterrupted capacity while the node passes through a kernel and driver transition.

## Primary references

[DKMS Module Build and Install States](https://raw.githubusercontent.com/dkms-project/dkms/main/dkms.8.in).

[Linux External Module Build Contract](https://docs.kernel.org/kbuild/modules.html).

[NVIDIA Driver Kernel Prerequisites](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/latest/pre-installation-actions.html).

Related reading: [A Change Register for GPU Drivers and Server Settings](/journal/gpu-maintenance-change-register/); [Reproducible inference stacks: preserving a GPU pilot’s result](/journal/software-stack-reproducibility/).
