Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1291 from vignesh-goutham/rhel-initrd
Browse files Browse the repository at this point in the history
Add dracut cmd to generate initramfs with drivers for RHEL raw
  • Loading branch information
k8s-ci-robot authored Sep 13, 2023
2 parents 4354dc9 + 67abe00 commit 8963d5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/capi/ansible/roles/providers/tasks/raw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
- cloud-utils-growpart
when: ansible_os_family == "RedHat"

- name: Run dracut cmd to regenerate initramfs with all drivers - needed when converting to different hypervisor templates
shell: dracut --force --no-hostonly
when: ansible_os_family == "RedHat"

#- name: Unlock password
# replace:
# path: /etc/cloud/cloud.cfg
Expand Down
1 change: 1 addition & 0 deletions images/capi/packer/raw/raw-rhel-8.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"boot_command_prefix": "<tab> text inst.ks=",
"boot_command_suffix": "/8/ks.cfg<enter><wait>",
"build_name": "rhel-8",
"build_target": "raw",
"distro_name": "rhel",
"distro_version": "8",
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8",
Expand Down

0 comments on commit 8963d5d

Please sign in to comment.