loader.efi: replace HandleProtocol() with OpenProtocol()
The HandleProtocol() is deprecated interface and we should use OpenProtocol() instead. Moreover, in some firmware implementation(s), the HandleProtocol() does return device path using static storage, so we can not keep the value returned there. With same firmware, the OpenProtocol() does return data we do not need to clone.
Tested by network and disk/cd boot on vmware fusion and bhyve; graphical and serial console, that should cover all use cases.
Updated by Toomas Soome 8 months ago
Commited also as https://svnweb.freebsd.org/base?view=revision&revision=350654
Updated by Electric Monk 8 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit bf693dc92f91a3c8675bf5a04d1300c40058500c Author: Toomas Soome <firstname.lastname@example.org> Date: 2019-08-07T18:12:01.000Z 11516 loader.efi: replace HandleProtocol() with OpenProtocol() Reviewed by: Yuri Pankov <email@example.com> Reviewed by: John Levon <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>