Skip to content

feat(templates): add RPM support to kernel template#681

Merged
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:rpm-support/kernel
Feb 18, 2026
Merged

feat(templates): add RPM support to kernel template#681
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:rpm-support/kernel

Conversation

@ArangoGutierrez
Copy link
Copy Markdown
Collaborator

Summary

  • Full OS-family branching for kernel installation, upgrade, and reboot
  • Debian: DEBIAN_FRONTEND, linux-image/headers/modules, update-grub, update-initramfs, --allow-downgrades
  • RPM: kernel/kernel-devel packages, grub2-mkconfig (BIOS+EFI fallback), dracut --force, --allowerasing
  • pkg_update abstraction at the top, OS-specific package managers in branches
  • Moved DEBIAN_FRONTEND and debconf setup into debian-only branch

Part of #569 (Epic: Support RPM-Based Distributions)

Test plan

  • All existing kernel tests pass
  • New tests: OSFamilyBranching (Debian elements, RPM elements, error handling)
  • go test ./pkg/provisioner/templates/ -count=1 passes
  • E2E validation on Rocky Linux / Amazon Linux instance

Add OS-family branching to the kernel template for RPM-based
distributions (Rocky Linux, Amazon Linux, RHEL):

Debian branch:
- DEBIAN_FRONTEND, debconf-set-selections for non-interactive apt
- apt-cache show for kernel availability check
- linux-image, linux-headers, linux-modules packages
- update-grub and update-initramfs for bootloader
- --allow-downgrades flag for apt-get install

RPM branch:
- dnf list available for kernel availability check
- kernel and kernel-devel packages (modules bundled on RPM)
- grub2-mkconfig with BIOS/UEFI path fallback
- dracut --force for initramfs regeneration
- --allowerasing flag for dnf install

Common (moved outside case block):
- pkg_update replaces bare apt-get update
- Kernel version check, reboot logic, state management

Follows the established case/HOLODECK_OS_FAMILY pattern.

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
Copilot AI review requested due to automatic review settings February 18, 2026 14:30
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 22143863294

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 48.227%

Totals Coverage Status
Change from base Build 22139342884: 0.0%
Covered Lines: 2612
Relevant Lines: 5416

💛 - Coveralls

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@ArangoGutierrez ArangoGutierrez merged commit 38ed002 into NVIDIA:main Feb 18, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants