[ipxe-devel] [ipxe/ipxe] file:/ URIs for USB key after loading native USB drivers (#123)

Michael Brown notifications at github.com
Tue Jul 21 16:14:29 UTC 2020


### Description

As a user, I want to be able to use the `file:/` URI syntax to refer to local files on a USB key from which iPXE was loaded even if iPXE includes native USB host controller drivers, since I expect this to work regardless of which drivers are included in the build.

Using the `file:/` URI syntax to refer to local files on a USB key from which iPXE was loaded will currently fail if the iPXE binary includes native USB host controller drivers, since iPXE's loaded image device handle will cease to be valid when iPXE disconnects the platform host controller drivers.

There is no way to prevent the loaded image's device handle from becoming invalid, so an alternative matching strategy will be required.  Recording the device path at startup and matching on device path may be a viable approach.

It may also be worth identifying other uses of `efi_loaded_image->DeviceHandle` to see if similar workarounds are required there.

### Acceptance criteria

* [ ] Ability to boot `bin-x86_64-efi/ecm.usb` (or other iPXE binary with native USB host controller drivers) from a USB key and to subsequently execute a script held on the USB key using the `file:/` URI syntax (with absolute path and no volume label, e.g. `chain file:/script.ipxe`)
* [ ] Other uses of `efi_loaded_image->DeviceHandle` have been identified and triaged

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/issues/123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20200721/23e612e1/attachment.htm>


More information about the ipxe-devel mailing list