<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Currently I have uefi pxe boot setup and working fine. grub.cfg has different menu options pointing to different kickstart files for different systems. They are all x86_64 uefi. Is there a way to have dnsmasq serve different
grub.cfg to different systems according to its MAC? Would dhcp-mac=set:<tag>,<MAC> and renaming grub.cfg to <MAC>-grub.cfg help?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div> #cat /etc/dnsmasq.conf<br>
# Configuration file for dnsmasq:<br>
<br>
# Log lots of extra information about DHCP transactions.<br>
#log-dhcp<br>
<br>
# Disables DNS function.<br>
port=0<br>
<br>
# Interface to listen on.<br>
interface=lo<br>
interface=eno2<br>
<br>
# Ensures that Dnsmasq will listen only to those interfaces.<br>
bind-dynamic<br>
<br>
# DHCP server, supply the range of addresses available for<br>
# lease and optionally a lease time.<br>
dhcp-range=172.16.0.200,172.16.0.254,6h<br>
<br>
# DHCP server, supply the router.<br>
dhcp-option=3,172.16.0.1<br>
<br>
# DHCP server, supply the DNS server.<br>
dhcp-option=6,172.16.0.1<br>
<br>
# DHCP server, match client.<br>
dhcp-match=set:efi-x86_64,option:client-arch,7<br>
<br>
# DHCP server, files to be served.<br>
dhcp-boot=tag:efi-x86_64,shim.efi<br>
<br>
# Enable dnsmasq's built-in TFTP server<br>
enable-tftp<br>
<br>
# Set the root directory for files available via FTP.<br>
tftp-root=/srv/tftpboot</div>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div> #ls /srv/tftpboot<br>
grub.cfg grubx64.efi shim.efi<br>
<br>
</div>
<br>
<p></p>
</div>
</body>
</html>