How to set up dhcpd.conf to serve different UEFI files per OS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to kickstart multiple versions of Linux. Some of my systems are BIOS based, and some are UEFI based.

I have a stanza in my dhcpd.conf file that looks like this:

        class "pxeclients" {
        match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
        next-server 172.31.100.1;
        if option architecture-type = 00:07 {
                filename "shim.efi";
                } else {
        filename "pxelinux.0";
    }
  }

I got the shim.efi I am serving from the tftpboot directory from the Fedora 38 shim-x64 package.

The problem is, when I try to kickstart a RHEL machine, it errors out saying the shim is invalid.

Is it that the shim.efi file is signed for UEFI environments, and the RHEL kernel is expecting the signature for the RHEL shim.efi file? If so, how do I specify which shim.efi file I want to use based on the kernel? I would assume I'd need to add the correct shim.efi file in /var/lib/tftpboot/images/[kickstart_os] the same as I add the vmlinuz and initrd.img. But how do I tell the machine being kickstarted where to get the correct shim.efi? Is there a vendor-class-identifier I can check to see what the OS is, and then point the machine being kickstarted to that file?

Or am I going about this the wrong way?

Thomas
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux