[AI Generated] BugFix: Skip verify_initrd_modules on Confidential VMs - #4582
Merged
Conversation
CVMs using UKI/azure-fde kernels do not have a standalone initrd file under /boot, causing verify_initrd_modules to skip with the unhelpful message 'Could not find initrd file path'. Add CvmDisabled() to the test requirement so it is skipped at the requirement matching level with a standard LISA skip message, consistent with other tests (kvp, drm, azure_disk_encryption).
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the HvModule core test suite to skip verify_initrd_modules during requirement matching on Confidential VMs, avoiding misleading failures on CVM kernels that boot with Unified Kernel Images (no standalone initrd under /boot).
Changes:
- Adds a
SecurityProfilerequirement (CvmDisabled()) toverify_initrd_modulesso it won’t be scheduled on CVM images. - Removes the CVM-specific module allowlist/skip logic inside
verify_initrd_modules, since the test is now excluded for CVMs up front.
✅ AI Test Selection — PASSED4 test case(s) selected (view run) Marketplace image: redhat rhel 9_5 latest
Test case details
|
LiliDeng
approved these changes
Jul 7, 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.
Summary
Add
CvmDisabled()to theverify_initrd_modulesrequirement so the test is skipped at the platform-matching level on Confidential VMs. CVM kernels using Unified Kernel Images (UKI) have no standalone initrd under /boot, causing a misleading assertion failure.Validation Results