Shim uses wrong TFTP server IP in proxyDHCP mode
Bug #1813541 reported by
Alkis Georgopoulos
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shim |
New
|
Unknown
|
|||
shim (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
This works fine:
UEFI > real DHCP > shimx64.efi over TFTP > grubx64.efi over TFTP.
In the scenario above, if we change "real" with "proxy", it fails, because it's trying to download grubx64.efi from the real DHCP server instead of the proxy one.
A proxy DHCP server is one that only sends the boot filename, and leaves the IP assignments to the real DHCP server. We use that a lot in the ltsp.org and in other netbooting projects, as it avoids the need for a special network setup.
Sample dnsmasq.conf for proxy setup:
enable-tftp
tftp-root=
dhcp-range=
pxe-service=
Changed in shim: | |
status: | Unknown → New |
Changed in shim (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
Specifically, I think the issue is in /git.launchpad. net/ubuntu/ +source/ shim/tree/ netboot. c#n293
https:/
memcpy( &tftp_addr. v4, pkt_v4- >BootpSiAddr, 4);
There should be an "if proxy ... use that one for tftp ... else use BootpSiAddr" at that point.