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

Use pxelinux.0 from distribution compose rather than pxelinux provided by Beaker #2

Open
StykMartin opened this issue Jul 10, 2020 · 0 comments

Comments

@StykMartin
Copy link

StykMartin commented Jul 10, 2020

At this moment it seems that default pxelinux.0 (provided by Beaker) is used for x86_64 machines.

It would be better if you will take it from compose and follow the same procedure as you do with PPC64LE.

- name: Copy RHEL8 ppc64le boot files to tftproot when provisioning a ppc64le machine
copy:
src: "{{ local_repo }}/{{ topic }}/compose/BaseOS/ppc64le/os/boot/grub/powerpc-ieee1275"
dest: "/var/lib/tftpboot/boot/grub2/{{ fqdn }}"
when: hostvars.localhost.system_arch == "ppc64le" and topic.startswith("RHEL-8")
- name: Copy RHEL7 ppc64le boot files to tftproot when provisioning a ppc64le machine
copy:
src: "{{ local_repo }}/{{ topic }}/compose/Server/ppc64le/os/boot/grub/powerpc-ieee1275"
dest: "/var/lib/tftpboot/boot/grub2/{{ fqdn }}"
when: hostvars.localhost.system_arch == "ppc64le" and topic.startswith("RHEL-7")

{% if hostvars.localhost.system_arch == 'ppc64le' %}
<recipe ks_meta="selinux=--permissive autopart_type=plain harness='restraint beakerlib'" whiteboard="" kernel_options="netbootloader=boot/grub2/{{ fqdn }}/powerpc-ieee1275/core.elf">

In case we would like to get BIOS mode done we need to take pxelinux.0 from syslinux package, because compose has GRUB(2) in /EFI/BOOT.

Following steps has to be done:

  • Fetch syslinux from {{ local_repo }}/{{ topic }}/compose/Server/x86_64/os/Packages/'
  • Unpack RPM with cpio
  • Store pxelinux.0 to proper structure in /var/lib/tftpboot
  • Move PXE config generated by Beaker
  • Update job
  • Profit ? 🥳
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

No branches or pull requests

1 participant