[PATCH] udhcpd: Per-client boot_file

Michael Tokarev mjt at tls.msk.ru
Sun Jun 25 05:57:47 UTC 2023


25.06.2023 02:23, Adam Goldman wrote:
> This patch adds the ability to specify a different boot_file for each
> client. This is useful if clients have different CPU architectures or if
> some clients are legacy BIOS and some are EFI.
> 
> It adds a config file option of the form
> "for xx:xx:xx:xx:xx:xx boot_file foo" which sets the boot_file to "foo"
> for the client with the MAC address xx:xx:xx:xx:xx:xx. If no such line
> exists, the global boot_file will be used. The syntax of the option is
> intended so that in the future, per-client options other than boot_file
> could be added.

I don't think this scales. Instead of per-client, it needs to be per
group of clients based on some criteria (such as CPU architecture).
See for example how dnsmasq does this (and maybe it is better suited
for your usage).

/mjt


More information about the busybox mailing list