Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dracut cmd to generate initramfs with drivers for RHEL raw builds #2483

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

vignesh-goutham
Copy link
Member

@vignesh-goutham vignesh-goutham commented Sep 8, 2023

Issue #2462

Description of changes:
Raw builds are run on KVM vms. RHEL 8.x ships with dracut that builds initramfs with default host-only mode set to true. This causes the initramfs to only include drivers that are required to run kvm infrastructure. When the disks are exported and booted on a metal server, the OS fails to boot up due to this missing drivers.

This change runs dracut with --no-hostonly to rebuild initramfs to include all drivers

This PR also fixes another issue that bubbled up during testing the dracut changes. The build_type was not set to raw in the rhel json file, causing providers role to run qemu tasks as opposed to raw tasks.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 8, 2023
@vignesh-goutham
Copy link
Member Author

/approve

@abhay-krishna
Copy link
Member

/lgtm
/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhay-krishna, vignesh-goutham

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhay-krishna,vignesh-goutham]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit 7c38b4f into aws:main Sep 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants