boot: call dhcp_run in pxe bootmethod
authorHeiko Stuebner <heiko@sntech.de>
Wed, 2 Apr 2025 21:50:25 +0000 (23:50 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 6 Apr 2025 16:03:03 +0000 (10:03 -0600)
commit1915fdcc21268c0f5df513461e3ddbb03a26f3c5
treeba71b3400f71abd2b19a2e52816901dfa547b39c
parent0708d54a5697e30ea5ecb03f97360e4fcff89719
boot: call dhcp_run in pxe bootmethod

A recent change tried to speed up EFI booting by not calling dhcp_run
from eth_bootdev_hunt() every time. PXE so far relied on that dhcp_run
call to get an IP address.

Fix that by adding a dhcp_run call to the pxe bootflow, with autoload
disabled to only get the ip address and nothing else.

Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Fixes: 1f68057e0320 ("net: eth_bootdev_hunt() should not run DHCP")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
boot/bootmeth_pxe.c