]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[image] Allow opaque URI component to provide image name
authorMichael Brown <mcb30@ipxe.org>
Fri, 29 Mar 2024 13:45:24 +0000 (13:45 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Mar 2024 14:12:10 +0000 (14:12 +0000)
commitf39b48d5f82793c75700b0787b36f65d33079f3b
tree23201cabc157ab19f7ee6418ea0317e73767ed13
parent37850e0e854292d074c2d35d18d7bb78d8e6ff85
[image] Allow opaque URI component to provide image name

Some URI schemes allow for a path name to be specified via the opaque
component of the URI (e.g. "file:/script.ipxe" to specify a path on
the filesystem from which iPXE itself was loaded).  Files loaded from
such paths will currently fail to be assigned an appropriate name,
since only the path component of the URI will be used to construct a
default image name.

Fix by falling back to attempt deriving an image name from the opaque
component of a URI, if no path component is specified.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/image.c