Repository navigation
Improve binary mode kernel lock warnings, DKMS registration, and Debian/Ubuntu package handling - #54
Merged
m-strzelczyk merged 5 commits intoSep 28, 2026
Conversation
…an/Ubuntu package handling
m-strzelczyk
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve binary mode kernel lock warnings, DKMS registration, and Debian/Ubuntu package handling
--dkmsand--tmpdir=/var/tmp(TMPDIR=/var/tmp) to the NVIDIA.runinstaller in
_binary_install_driver()so module sources are registered inDKMS (enabling automatic/offline rebuilds when kernel headers are installed)
and preventing
/tmptmpfs exhaustion during BTF encoding on smaller VMs./etc/kernel/postinst.d/zz-gcp-gpu-header-check)and emit an explicit CLI warning when
lock_kernel_updates()runs inbinarymode, alerting administrators (via stderr and syslog) if a new
linux-image-*package is installed by third-party patch tools without matching
linux-headers-*.DebianInstaller._install_prerequisites()to compare kernel patch versionsnumerically (
key=lambda x: int(x[0])) rather than lexicographically whenpatch numbers exceed 100 (e.g.,
6.12.107vs6.12.96).UbuntuInstallerto derive kernel meta-packages dynamically from therunning kernel flavor (
_get_kernel_meta_packages()) and fix_repo_uninstall_driver()to unhold and remove the matching driver package(
nvidia-driver-openon Ubuntu 24.04/26.04,nvidia-openon 22.04).linux/README.mdto clarify thatrepomode is the default and onlybinarymode locks kernel updates.