mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
Allow "imgexec" with no arguments to boot the file that was loaded with
"kernel".
This commit is contained in:
@@ -90,6 +90,22 @@ int imgexec ( struct image *image ) {
|
||||
return image_exec ( image );
|
||||
}
|
||||
|
||||
/**
|
||||
* Identify the first loaded image
|
||||
*
|
||||
* @ret image Image, or NULL
|
||||
*/
|
||||
struct image * imgautoselect ( void ) {
|
||||
struct image *image;
|
||||
|
||||
for_each_image ( image ) {
|
||||
if ( image->flags & IMAGE_LOADED )
|
||||
return image;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display status of an image
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user