mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 10:01:03 +03:00
[image] Eliminate the register_and_xxx_image() functions
All users of imgdownload() require registration of the image, so make registration an integral part of imgdownload() itself and simplify the "action" parameter to be one of image_select(), image_exec() et al. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -158,7 +158,7 @@ int uriboot ( struct uri *filename, struct uri *root_path, int drive,
|
||||
/* Attempt filename boot if applicable */
|
||||
if ( filename ) {
|
||||
if ( ( rc = imgdownload ( filename, NULL, NULL,
|
||||
register_and_boot_image ) ) != 0 ) {
|
||||
image_exec ) ) != 0 ) {
|
||||
printf ( "\nCould not chain image: %s\n",
|
||||
strerror ( rc ) );
|
||||
/* Fall through to (possibly) attempt a SAN boot
|
||||
|
||||
Reference in New Issue
Block a user